Skip to content

Commit

Permalink
run-command.c: remove run_command_v_opt_cd()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nanako Shiraishi authored and Shawn O. Pearce committed Oct 3, 2008
1 parent 159b321 commit 7996ff3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion Documentation/technical/api-run-command.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions run-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion run-command.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_COMMAND_STDOUT_TO_STDERR 4
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".
Expand Down

0 comments on commit 7996ff3

Please sign in to comment.