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>
This commit is contained in:
Nanako Shiraishi 2008-10-02 19:14:25 +09:00 committed by Shawn O. Pearce
parent 159b321270
commit 7996ff335e
3 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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;

View File

@ -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".