mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Remove some members of struct cmd which are no longer used.
This commit is contained in:
parent
c286fbdcd7
commit
68cacaec68
11
cmd.c
11
cmd.c
@ -222,10 +222,6 @@ struct cmd {
|
|||||||
char *file;
|
char *file;
|
||||||
u_int line;
|
u_int line;
|
||||||
|
|
||||||
char *alias;
|
|
||||||
int argc;
|
|
||||||
char **argv;
|
|
||||||
|
|
||||||
TAILQ_ENTRY(cmd) qentry;
|
TAILQ_ENTRY(cmd) qentry;
|
||||||
};
|
};
|
||||||
TAILQ_HEAD(cmds, cmd);
|
TAILQ_HEAD(cmds, cmd);
|
||||||
@ -530,10 +526,6 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause)
|
|||||||
cmd->file = xstrdup(file);
|
cmd->file = xstrdup(file);
|
||||||
cmd->line = line;
|
cmd->line = line;
|
||||||
|
|
||||||
cmd->alias = NULL;
|
|
||||||
cmd->argc = argc;
|
|
||||||
cmd->argv = cmd_copy_argv(argc, argv);
|
|
||||||
|
|
||||||
return (cmd);
|
return (cmd);
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@ -547,9 +539,6 @@ usage:
|
|||||||
void
|
void
|
||||||
cmd_free(struct cmd *cmd)
|
cmd_free(struct cmd *cmd)
|
||||||
{
|
{
|
||||||
free(cmd->alias);
|
|
||||||
cmd_free_argv(cmd->argc, cmd->argv);
|
|
||||||
|
|
||||||
free(cmd->file);
|
free(cmd->file);
|
||||||
|
|
||||||
args_free(cmd->args);
|
args_free(cmd->args);
|
||||||
|
Loading…
Reference in New Issue
Block a user