summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-30 17:29:13 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-30 17:29:13 +0000
commit8810e84fa87f186513b4bfd9a75c4a2322c01393 (patch)
treed51c74bfe71f8e7de8438a74564a9f3c4b26cc1a /usr.bin
parent378655f1a17996843befe4abc78f61e326ec8068 (diff)
Remove some dead code found by clang.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-clear-history.c5
-rw-r--r--usr.bin/tmux/cmd-swap-pane.c3
2 files changed, 3 insertions, 5 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;
diff --git a/usr.bin/tmux/cmd-swap-pane.c b/usr.bin/tmux/cmd-swap-pane.c
index 20c153a0e2c..bd1cdfc7d82 100644
--- a/usr.bin/tmux/cmd-swap-pane.c
+++ b/usr.bin/tmux/cmd-swap-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-swap-pane.c,v 1.8 2009/07/30 13:45:56 nicm Exp $ */
+/* $OpenBSD: cmd-swap-pane.c,v 1.9 2009/07/30 17:29:12 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -72,7 +72,6 @@ cmd_swap_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
dst_w = dst_wl->window;
if (data->src == NULL) {
- src_wl = dst_wl;
src_w = dst_w;
if (data->chflags & CMD_CHFLAG('D')) {
src_wp = TAILQ_NEXT(dst_wp, entry);