From 2144f7d83426136cc1a9de2fafb302683645c6da Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 30 Sep 2009 11:49:21 +1000 Subject: Remove unused has_xy. has_xy is only ever set, but not used for anything else. Signed-off-by: Peter Hutterer --- src/evdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 5da8960..2b41343 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1774,7 +1774,7 @@ error: static int EvdevProbe(InputInfoPtr pInfo) { - int i, has_rel_axes, has_abs_axes, has_xy, has_keys, num_buttons, has_scroll; + int i, has_rel_axes, has_abs_axes, has_keys, num_buttons, has_scroll; int kernel24 = 0; EvdevPtr pEvdev = pInfo->private; @@ -1793,7 +1793,6 @@ EvdevProbe(InputInfoPtr pInfo) has_rel_axes = FALSE; has_abs_axes = FALSE; - has_xy = FALSE; has_keys = FALSE; has_scroll = FALSE; num_buttons = 0; @@ -1831,7 +1830,6 @@ EvdevProbe(InputInfoPtr pInfo) if (TestBit(REL_X, pEvdev->rel_bitmask) && TestBit(REL_Y, pEvdev->rel_bitmask)) { xf86Msg(X_INFO, "%s: Found x and y relative axes\n", pInfo->name); - has_xy = TRUE; } if (TestBit(REL_WHEEL, pEvdev->rel_bitmask) || @@ -1877,7 +1875,6 @@ EvdevProbe(InputInfoPtr pInfo) pEvdev->flags |= EVDEV_BUTTON_EVENTS; } } - has_xy = TRUE; } } -- cgit v1.2.3