Remove unnecessary initializers of cmd_ctx.

This commit is contained in:
Nicholas Marriott 2013-02-18 23:38:57 +00:00
parent 255a4f8ce3
commit 693244795c
6 changed files with 0 additions and 17 deletions

View File

@ -185,10 +185,7 @@ cmd_command_prompt_callback(void *data, const char *s)
}
ctx = cmd_get_ctx();
ctx->msgdata = NULL;
ctx->curclient = c;
ctx->cmdclient = NULL;
ctx->error = key_bindings_error;
ctx->print = key_bindings_print;
ctx->info = key_bindings_info;

View File

@ -126,10 +126,7 @@ cmd_confirm_before_callback(void *data, const char *s)
}
ctx = cmd_get_ctx();
ctx->msgdata = NULL;
ctx->curclient = c;
ctx->cmdclient = NULL;
ctx->error = key_bindings_error;
ctx->print = key_bindings_print;
ctx->info = key_bindings_info;

View File

@ -109,10 +109,7 @@ control_callback(struct client *c, int closed, unused void *data)
}
ctx = cmd_get_ctx();
ctx->msgdata = NULL;
ctx->cmdclient = NULL;
ctx->curclient = c;
ctx->error = control_msg_error;
ctx->print = control_msg_print;
ctx->info = control_msg_info;

View File

@ -267,10 +267,7 @@ key_bindings_dispatch(struct key_binding *bd, struct client *c)
int readonly;
ctx = cmd_get_ctx();
ctx->msgdata = NULL;
ctx->cmdclient = NULL;
ctx->curclient = c;
ctx->error = key_bindings_error;
ctx->print = key_bindings_print;
ctx->info = key_bindings_info;

View File

@ -871,9 +871,7 @@ server_client_msg_command(struct client *c, struct msg_command_data *data)
ctx = cmd_get_ctx();
ctx->msgdata = data;
ctx->curclient = NULL;
ctx->cmdclient = c;
ctx->error = server_client_msg_error;
ctx->print = server_client_msg_print;
ctx->info = server_client_msg_info;

View File

@ -221,10 +221,7 @@ window_choose_data_run(struct window_choose_data *cdata)
}
ctx = cmd_get_ctx();
ctx->msgdata = NULL;
ctx->curclient = cdata->start_client;
ctx->cmdclient = NULL;
ctx->error = key_bindings_error;
ctx->print = key_bindings_print;
ctx->info = key_bindings_info;