summaryrefslogtreecommitdiffstats
path: root/window-buffer.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-09 13:52:31 +0000
committernicm <nicm>2020-04-09 13:52:31 +0000
commitb96ac809018c461b55aed66459a68a71dd08047f (patch)
treee8a3ea7ce40ff18088c0113ee76d1c4f834b3999 /window-buffer.c
parentc4d0089edb802763619724e405ac2715542969d5 (diff)
Some unnecessary assignments and unused variables.
Diffstat (limited to 'window-buffer.c')
-rw-r--r--window-buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/window-buffer.c b/window-buffer.c
index bbc5c744..37707233 100644
--- a/window-buffer.c
+++ b/window-buffer.c
@@ -348,9 +348,8 @@ window_buffer_do_paste(void *modedata, void *itemdata, struct client *c,
{
struct window_buffer_modedata *data = modedata;
struct window_buffer_itemdata *item = itemdata;
- struct paste_buffer *pb;
- if ((pb = paste_get_name(item->name)) != NULL)
+ if (paste_get_name(item->name) != NULL)
mode_tree_run_command(c, NULL, data->command, item->name);
}