mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17: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;
|
||||
u_int line;
|
||||
|
||||
char *alias;
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
TAILQ_ENTRY(cmd) qentry;
|
||||
};
|
||||
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->line = line;
|
||||
|
||||
cmd->alias = NULL;
|
||||
cmd->argc = argc;
|
||||
cmd->argv = cmd_copy_argv(argc, argv);
|
||||
|
||||
return (cmd);
|
||||
|
||||
usage:
|
||||
@ -547,9 +539,6 @@ usage:
|
||||
void
|
||||
cmd_free(struct cmd *cmd)
|
||||
{
|
||||
free(cmd->alias);
|
||||
cmd_free_argv(cmd->argc, cmd->argv);
|
||||
|
||||
free(cmd->file);
|
||||
|
||||
args_free(cmd->args);
|
||||
|
Loading…
Reference in New Issue
Block a user