提交 7996ff33 编写于 作者: N Nanako Shiraishi 提交者: Shawn O. Pearce

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: NNanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
上级 159b3212
...@@ -30,7 +30,7 @@ Functions ...@@ -30,7 +30,7 @@ Functions
start_command() followed by finish_command(). Takes a pointer start_command() followed by finish_command(). Takes a pointer
to a `struct child_process` that specifies the details. to a `struct child_process` that specifies the details.
`run_command_v_opt`, `run_command_v_opt_cd`, `run_command_v_opt_cd_env`:: `run_command_v_opt`, `run_command_v_opt_cd_env`::
Convenience functions that encapsulate a sequence of Convenience functions that encapsulate a sequence of
start_command() followed by finish_command(). The argument argv start_command() followed by finish_command(). The argument argv
......
...@@ -273,14 +273,6 @@ int run_command_v_opt(const char **argv, int opt) ...@@ -273,14 +273,6 @@ int run_command_v_opt(const char **argv, int opt)
return run_command(&cmd); return run_command(&cmd);
} }
int run_command_v_opt_cd(const char **argv, int opt, const char *dir)
{
struct child_process cmd;
prepare_run_command_v_opt(&cmd, argv, opt);
cmd.dir = dir;
return run_command(&cmd);
}
int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env) int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env)
{ {
struct child_process cmd; struct child_process cmd;
......
...@@ -53,7 +53,6 @@ int run_command(struct child_process *); ...@@ -53,7 +53,6 @@ int run_command(struct child_process *);
#define RUN_GIT_CMD 2 /*If this is to be git sub-command */ #define RUN_GIT_CMD 2 /*If this is to be git sub-command */
#define RUN_COMMAND_STDOUT_TO_STDERR 4 #define RUN_COMMAND_STDOUT_TO_STDERR 4
int run_command_v_opt(const char **argv, int opt); int run_command_v_opt(const char **argv, int opt);
int run_command_v_opt_cd(const char **argv, int opt, const char *dir);
/* /*
* env (the environment) is to be formatted like environ: "VAR=VALUE". * env (the environment) is to be formatted like environ: "VAR=VALUE".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册