run-command.c: remove run_command_v_opt_cd()
This function is not used anywhere. Johannes Sixt <johannes.sixt@telecom.at>: > Future callers can use run_command_v_opt_cd_env() instead. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Nanako Shiraishi committed
Oct 2, 2008 at 19:14 UTC
7996ff335e675b229398974f6cbf459843c9bf6d
3 files changed
+1
-10
Documentation/technical/api-run-command.txt
+1
-1
@@ -30,7 +30,7 @@ Functions
30
start_command() followed by finish_command(). Takes a pointer
31
to a `struct child_process` that specifies the details.
32
33
-`run_command_v_opt`, `run_command_v_opt_cd`, `run_command_v_opt_cd_env`::
33
+`run_command_v_opt`, `run_command_v_opt_cd_env`::
34
35
Convenience functions that encapsulate a sequence of
36
start_command() followed by finish_command(). The argument argv
run-command.c
-8
@@ -273,14 +273,6 @@ int run_command_v_opt(const char **argv, int opt)
273
return run_command(&cmd);
274
}
275
276
-int run_command_v_opt_cd(const char **argv, int opt, const char *dir)
277
-{
278
- struct child_process cmd;
279
- prepare_run_command_v_opt(&cmd, argv, opt);
280
- cmd.dir = dir;
281
- return run_command(&cmd);
282
-}
283
-
276
int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env)
277
{
278
struct child_process cmd;
run-command.h
-1
@@ -53,7 +53,6 @@ int run_command(struct child_process *);
53
#define RUN_GIT_CMD 2 /*If this is to be git sub-command */
54
#define RUN_COMMAND_STDOUT_TO_STDERR 4
55
int run_command_v_opt(const char **argv, int opt);
56
-int run_command_v_opt_cd(const char **argv, int opt, const char *dir);
56
57
/*
58
* env (the environment) is to be formatted like environ: "VAR=VALUE".