mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 19:08:50 +00:00
Remove unused variables.
This commit is contained in:
parent
c3f93e7178
commit
a011b67f56
@ -73,14 +73,13 @@ cmd_if_shell_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||||||
struct format_tree *ft;
|
struct format_tree *ft;
|
||||||
const char *cwd;
|
const char *cwd;
|
||||||
|
|
||||||
cwd = wp->cwd;
|
|
||||||
|
|
||||||
if (cmdq->client != NULL && cmdq->client->session == NULL)
|
if (cmdq->client != NULL && cmdq->client->session == NULL)
|
||||||
cwd = cmdq->client->cwd;
|
cwd = cmdq->client->cwd;
|
||||||
else if (s != NULL)
|
else if (s != NULL)
|
||||||
cwd = s->cwd;
|
cwd = s->cwd;
|
||||||
else
|
else
|
||||||
cwd = NULL;
|
cwd = NULL;
|
||||||
|
|
||||||
ft = format_create(cmdq, 0);
|
ft = format_create(cmdq, 0);
|
||||||
format_defaults(ft, NULL, s, wl, wp);
|
format_defaults(ft, NULL, s, wl, wp);
|
||||||
shellcmd = format_expand(ft, args->argv[0]);
|
shellcmd = format_expand(ft, args->argv[0]);
|
||||||
|
@ -68,7 +68,6 @@ cmd_resize_pane_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||||||
return (CMD_RETURN_NORMAL);
|
return (CMD_RETURN_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
w = wl->window;
|
|
||||||
if (args_has(args, 'Z')) {
|
if (args_has(args, 'Z')) {
|
||||||
if (w->flags & WINDOW_ZOOMED)
|
if (w->flags & WINDOW_ZOOMED)
|
||||||
window_unzoom(w);
|
window_unzoom(w);
|
||||||
|
1
cmd.c
1
cmd.c
@ -481,7 +481,6 @@ cmd_prepare_state_flag(char c, const char *target, enum cmd_entry_flag flag,
|
|||||||
CMD_FIND_SESSION, CMD_FIND_QUIET);
|
CMD_FIND_SESSION, CMD_FIND_QUIET);
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
break;
|
break;
|
||||||
flag = CMD_WINDOW_INDEX;
|
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case CMD_WINDOW:
|
case CMD_WINDOW:
|
||||||
case CMD_WINDOW_CANFAIL:
|
case CMD_WINDOW_CANFAIL:
|
||||||
|
@ -68,12 +68,12 @@ void
|
|||||||
key_bindings_unref_table(struct key_table *table)
|
key_bindings_unref_table(struct key_table *table)
|
||||||
{
|
{
|
||||||
struct key_binding *bd;
|
struct key_binding *bd;
|
||||||
|
struct key_binding *bd1;
|
||||||
|
|
||||||
if (--table->references != 0)
|
if (--table->references != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (!RB_EMPTY(&table->key_bindings)) {
|
RB_FOREACH_SAFE(bd, key_bindings, &table->key_bindings, bd1) {
|
||||||
bd = RB_ROOT(&table->key_bindings);
|
|
||||||
RB_REMOVE(key_bindings, &table->key_bindings, bd);
|
RB_REMOVE(key_bindings, &table->key_bindings, bd);
|
||||||
cmd_list_free(bd->cmdlist);
|
cmd_list_free(bd->cmdlist);
|
||||||
free(bd);
|
free(bd);
|
||||||
|
Loading…
Reference in New Issue
Block a user