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@xxxxxxxxx> --- vcs-svn/repo_tree.c | 5 ----- vcs-svn/repo_tree.h | 1 - vcs-svn/svndump.c | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/vcs-svn/repo_tree.c b/vcs-svn/repo_tree.c index 9107f9663d..99747e373a 100644 --- a/vcs-svn/repo_tree.c +++ b/vcs-svn/repo_tree.c @@ -41,8 +41,3 @@ void repo_copy(uint32_t revision, const char *src, const char *dst) } fast_export_modify(dst, mode, data.buf); } - -void repo_delete(const char *path) -{ - fast_export_delete(path); -} diff --git a/vcs-svn/repo_tree.h b/vcs-svn/repo_tree.h index 7f59fd9148..56a3209d01 100644 --- a/vcs-svn/repo_tree.h +++ b/vcs-svn/repo_tree.h @@ -3,6 +3,5 @@ void repo_copy(uint32_t revision, const char *src, const char *dst); const char *repo_read_path(const char *path, uint32_t *mode_out); -void repo_delete(const char *path); #endif diff --git a/vcs-svn/svndump.c b/vcs-svn/svndump.c index dc42ae3316..d51136fac5 100644 --- a/vcs-svn/svndump.c +++ b/vcs-svn/svndump.c @@ -225,11 +225,11 @@ static void handle_node(void) if (have_text || have_props || node_ctx.srcRev) die("invalid dump: deletion node has " "copyfrom info, text, or properties"); - repo_delete(node_ctx.dst.buf); + fast_export_delete(node_ctx.dst.buf); return; } if (node_ctx.action == NODEACT_REPLACE) { - repo_delete(node_ctx.dst.buf); + fast_export_delete(node_ctx.dst.buf); node_ctx.action = NODEACT_ADD; } if (node_ctx.srcRev) { -- 2.14.1.342.g6490525c54