From d2b8d00cd318a2614a8ab8da89020acd68b4503b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 16 Dec 2010 21:38:42 +0000 Subject: Remove redundant code from drag browser_mouse_state setup. svn path=/trunk/netsurf/; revision=11080 --- riscos/window.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index a01fc32ca..97490a1d5 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -3169,15 +3169,6 @@ browser_mouse_state ro_gui_mouse_drag_state(wimp_mouse_state buttons, { browser_mouse_state state = 0; /* Blank state with nothing set */ - switch (type) { - case wimp_BUTTON_CLICK_DRAG: - if (buttons & (wimp_CLICK_SELECT)) - state |= BROWSER_MOUSE_HOLDING_1; - if (buttons & (wimp_CLICK_ADJUST)) - state |= BROWSER_MOUSE_HOLDING_2; - break; - } - /* If mouse buttons aren't held, turn off drags */ if (!(buttons & (wimp_CLICK_SELECT) || buttons & (wimp_CLICK_ADJUST))) { mouse_drag_select = false; -- cgit v1.2.3