Remove redundant code from drag browser_mouse_state setup.

svn path=/trunk/netsurf/; revision=11080
This commit is contained in:
Michael Drake 2010-12-16 21:38:42 +00:00
parent ccdafcc4d7
commit d2b8d00cd3
1 changed files with 0 additions and 9 deletions

View File

@ -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;