Skip to content

Commit

Permalink
Remove some members of struct cmd which are no longer used.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Aug 21, 2021
1 parent da650dc commit 673924d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions usr.bin/tmux/cmd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: cmd.c,v 1.168 2021/08/21 14:06:17 nicm Exp $ */
/* $OpenBSD: cmd.c,v 1.169 2021/08/21 14:10:08 nicm Exp $ */

/*
* Copyright (c) 2007 Nicholas Marriott <[email protected]>
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand All @@ -547,9 +539,6 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause)
void
cmd_free(struct cmd *cmd)
{
free(cmd->alias);
cmd_free_argv(cmd->argc, cmd->argv);

free(cmd->file);

args_free(cmd->args);
Expand Down

0 comments on commit 673924d

Please sign in to comment.