vcs-svn: remove repo_delete wrapper function
Since v1.7.10-rc0~118^2~4^2~4^2~3 (vcs-svn: pass paths through to fast-import, 2010-12-13) this is an alias for fast_export_delete. Remove the unnecessary layer of indirection. No functional change intended. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Aug 22, 2017 at 17:02 UTC
9b0db33506ea9b1d968d719f2fce9c208c66cd95
3 files changed
+2
-8
vcs-svn/repo_tree.c
-5
@@ -41,8 +41,3 @@ void svn_repo_copy(uint32_t revision, const char *src, const char *dst)
41
}
42
fast_export_modify(dst, mode, data.buf);
43
}
44
-
45
-void svn_repo_delete(const char *path)
46
-{
47
- fast_export_delete(path);
48
-}
vcs-svn/repo_tree.h
-1
@@ -3,6 +3,5 @@
3
4
void svn_repo_copy(uint32_t revision, const char *src, const char *dst);
5
const char *svn_repo_read_path(const char *path, uint32_t *mode_out);
6
-void svn_repo_delete(const char *path);
6
7
#endif
vcs-svn/svndump.c
+2
-2
@@ -225,11 +225,11 @@ static void handle_node(void)
225
if (have_text || have_props || node_ctx.srcRev)
226
die("invalid dump: deletion node has "
227
"copyfrom info, text, or properties");
228
- svn_repo_delete(node_ctx.dst.buf);
228
+ fast_export_delete(node_ctx.dst.buf);
229
return;
230
}
231
if (node_ctx.action == NODEACT_REPLACE) {
232
- svn_repo_delete(node_ctx.dst.buf);
232
+ fast_export_delete(node_ctx.dst.buf);
233
node_ctx.action = NODEACT_ADD;
234
}
235
if (node_ctx.srcRev) {