Discussion:
[PATCH] Remove unused vars
(too old to reply)
Thomas Adam
2015-04-20 14:49:00 UTC
Permalink
Remove 'set-but-not-used' variables, to shut GCC up.
---
window-copy.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/window-copy.c b/window-copy.c
index afa609e..11cef71 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -2217,13 +2217,11 @@ 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;

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;
@@ -2261,12 +2259,10 @@ void
window_copy_drag_release(unused struct client *c, struct mouse_event *m)
{
struct window_pane *wp;
- struct window_copy_mode_data *data;

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);
--
2.1.4
Loading...