diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-30 21:04:40 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-30 21:04:40 +0000 |
commit | 3eb77bf53fcb0d783ad2c4d4a676378eeb2452a1 (patch) | |
tree | ff0d68edd1b910f01ae9364f388f90d590d2b048 /cmd-clear-history.c | |
parent | 89826983ebb575795d1180ff96432b175a72868e (diff) | |
download | rtmux-3eb77bf53fcb0d783ad2c4d4a676378eeb2452a1.tar.gz rtmux-3eb77bf53fcb0d783ad2c4d4a676378eeb2452a1.tar.bz2 rtmux-3eb77bf53fcb0d783ad2c4d4a676378eeb2452a1.zip |
Sync OpenBSD patchset 205:
Remove some dead code found by clang.
Diffstat (limited to 'cmd-clear-history.c')
-rw-r--r-- | cmd-clear-history.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-clear-history.c b/cmd-clear-history.c index 5b6dd8d4..f91d3b43 100644 --- a/cmd-clear-history.c +++ b/cmd-clear-history.c @@ -1,4 +1,4 @@ -/* $Id: cmd-clear-history.c,v 1.6 2009-07-30 20:45:20 tcunha Exp $ */ +/* $Id: cmd-clear-history.c,v 1.7 2009-07-30 21:04:40 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |