summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2022-10-30 11:52:40 (GMT)
committerTaylor Blau <me@ttaylorr.com>2022-10-30 18:04:48 (GMT)
commitd82dbbd849fadd9d61d9489a03b429b6d1413c81 (patch)
tree5363081cc9cfa212facf594778e0ee458cbdc8dc /run-command.c
parenteb5b6b57d0e9fba0e50871ece4ea79e76cd61a36 (diff)
downloadgit-d82dbbd849fadd9d61d9489a03b429b6d1413c81.zip
git-d82dbbd849fadd9d61d9489a03b429b6d1413c81.tar.gz
git-d82dbbd849fadd9d61d9489a03b429b6d1413c81.tar.bz2
replace and remove run_command_v_opt_tr2()
The convenience function run_command_v_opt_tr2() is only used by a single caller. Use struct child_process and run_command() directly instead and remove the underused function. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/run-command.c b/run-command.c
index 1c9ed51..32fa4b0 100644
--- a/run-command.c
+++ b/run-command.c
@@ -1009,11 +1009,6 @@ int run_command_v_opt(const char **argv, int opt)
return run_command_v_opt_cd_env_tr2(argv, opt, NULL, NULL, NULL);
}
-int run_command_v_opt_tr2(const char **argv, int opt, const char *tr2_class)
-{
- return run_command_v_opt_cd_env_tr2(argv, opt, NULL, NULL, tr2_class);
-}
-
int run_command_v_opt_cd_env_tr2(const char **argv, int opt, const char *dir,
const char *const *env, const char *tr2_class)
{