diff options
author | nicm <nicm> | 2015-04-20 15:41:32 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-20 15:41:32 +0000 |
commit | 07d93db427751512e6ae96a54e69846189da2dc2 (patch) | |
tree | 2277434d90538ed15a66e6608a037f59cb695b2c /window-copy.c | |
parent | bded7437064c76dd6cf4e76e558d826859adcc79 (diff) |
Remove unused-but-set variables, from Thomas Adam.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/window-copy.c b/window-copy.c index afa609ed..4dc07354 100644 --- a/window-copy.c +++ b/window-copy.c @@ -2216,14 +2216,12 @@ window_copy_rectangle_toggle(struct window_pane *wp) void window_copy_start_drag(struct client *c, unused struct mouse_event *m) { - struct window_pane *wp; - struct window_copy_mode_data *data; - u_int x, y; + struct window_pane *wp; + u_int x, y; wp = cmd_mouse_pane(m, NULL, NULL); if (wp->mode != &window_copy_mode) return; - data = wp->modedata; if (cmd_mouse_at(wp, m, &x, &y, 1) != 0) return; @@ -2260,13 +2258,11 @@ window_copy_drag_update(unused struct client *c, struct mouse_event *m) void window_copy_drag_release(unused struct client *c, struct mouse_event *m) { - struct window_pane *wp; - struct window_copy_mode_data *data; + struct window_pane *wp; wp = cmd_mouse_pane(m, NULL, NULL); if (wp->mode != &window_copy_mode) return; - data = wp->modedata; window_copy_copy_selection(wp, NULL); window_pane_reset_mode(wp); |