diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-07-30 17:29:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-07-30 17:29:13 +0000 |
commit | 8810e84fa87f186513b4bfd9a75c4a2322c01393 (patch) | |
tree | d51c74bfe71f8e7de8438a74564a9f3c4b26cc1a /usr.bin/tmux/cmd-clear-history.c | |
parent | 378655f1a17996843befe4abc78f61e326ec8068 (diff) |
Remove some dead code found by clang.
Diffstat (limited to 'usr.bin/tmux/cmd-clear-history.c')
-rw-r--r-- | usr.bin/tmux/cmd-clear-history.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-clear-history.c b/usr.bin/tmux/cmd-clear-history.c index 3a57bcda72c..6b9f1a70058 100644 --- a/usr.bin/tmux/cmd-clear-history.c +++ b/usr.bin/tmux/cmd-clear-history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-clear-history.c,v 1.5 2009/07/30 13:45:56 nicm Exp $ */ +/* $OpenBSD: cmd-clear-history.c,v 1.6 2009/07/30 17:29:12 nicm 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; |