Commit 7996ff33 authored by Nanako Shiraishi's avatar Nanako Shiraishi Committed by Shawn O. Pearce

run-command.c: remove run_command_v_opt_cd()

This function is not used anywhere.

Johannes Sixt <[email protected]>:
> Future callers can use run_command_v_opt_cd_env() instead.
Signed-off-by: default avatarNanako Shiraishi <[email protected]>
Signed-off-by: default avatarShawn O. Pearce <[email protected]>
parent 159b3212
......@@ -30,7 +30,7 @@ Functions
start_command() followed by finish_command(). Takes a pointer
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
start_command() followed by finish_command(). The argument argv
......@@ -273,14 +273,6 @@ int run_command_v_opt(const char **argv, int opt)
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)
struct child_process cmd;
......@@ -53,7 +53,6 @@ int run_command(struct child_process *);
#define RUN_GIT_CMD 2 /*If this is to be git sub-command */
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".
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment