Remove some dead code found by clang.

This commit is contained in:
Nicholas Marriott
2009-07-30 17:29:12 +00:00
parent 6d86882ed4
commit 8df3035831
2 changed files with 1 additions and 3 deletions

View File

@ -41,11 +41,10 @@ int
cmd_clear_history_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct cmd_target_data *data = self->data;
struct winlink *wl;
struct window_pane *wp;
struct grid *gd;
if ((wl = cmd_find_pane(ctx, data->target, NULL, &wp)) == NULL)
if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
return (-1);
gd = wp->base.grid;