From 6c286d5c52fa0ba547dc4b7e34e20bb1a043d8ff Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 21 Mar 2011 14:43:21 +0000 Subject: [PATCH] Ecore/Xlib: Remove unused variable. NB: _ecore_x_mouse_up_count appears to not be used. It was used in one code block only and appears to serve no real purpose. Both variable and code block are now commented out without any ill effects. SVN revision: 57933 --- legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c index c232d95c91..f134ef67b7 100644 --- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c +++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_events.c @@ -28,7 +28,7 @@ static Window _ecore_x_mouse_down_last_event_win = 0; static Window _ecore_x_mouse_down_last_last_event_win = 0; static Time _ecore_x_mouse_down_last_time = 0; static Time _ecore_x_mouse_down_last_last_time = 0; -static int _ecore_x_mouse_up_count = 0; +// static int _ecore_x_mouse_up_count = 0; static int _ecore_x_mouse_down_did_double = 0; static int _ecore_x_mouse_down_did_triple = 0; static int _ecore_x_last_event_mouse_move = 0; @@ -439,11 +439,16 @@ _ecore_mouse_button(int event, } } - + + /* NB: Block commented out as _ecore_x_mouse_up_count appears to have + * no use. The variable is also commented out above. This code block is + * the only place that this variable is used, and appears to serve no + * purpose. - dh if (event == ECORE_EVENT_MOUSE_BUTTON_DOWN && !e->double_click && !e->triple_click) _ecore_x_mouse_up_count = 0; + */ e->multi.device = dev; e->multi.radius = (radx + rady) / 2;