mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Nuke unused variables and fix stupid error message.
This commit is contained in:
parent
9b5f5ed8e8
commit
105ce36792
@ -56,7 +56,7 @@ cmd_link_window_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
kflag = data->chflags & CMD_CHFLAG('k');
|
||||
dflag = data->chflags & CMD_CHFLAG('d');
|
||||
if (server_link_window(wl, dst, idx, kflag, !dflag, &cause) != 0) {
|
||||
ctx->error(ctx, "can't create session: %s", cause);
|
||||
ctx->error(ctx, "can't link window: %s", cause);
|
||||
xfree(cause);
|
||||
return (-1);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ cmd_move_window_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
kflag = data->chflags & CMD_CHFLAG('k');
|
||||
dflag = data->chflags & CMD_CHFLAG('d');
|
||||
if (server_link_window(wl, dst, idx, kflag, !dflag, &cause) != 0) {
|
||||
ctx->error(ctx, "can't create session: %s", cause);
|
||||
ctx->error(ctx, "can't move window: %s", cause);
|
||||
xfree(cause);
|
||||
return (-1);
|
||||
}
|
||||
|
@ -43,9 +43,6 @@ cmd_unlink_window_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
struct cmd_target_data *data = self->data;
|
||||
struct winlink *wl;
|
||||
struct session *s;
|
||||
struct client *c;
|
||||
u_int i;
|
||||
int destroyed;
|
||||
|
||||
if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL)
|
||||
return (-1);
|
||||
|
Loading…
Reference in New Issue
Block a user