tablet: drop unnecessary switch case statements
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 2 Feb 2018 05:37:24 +0000 (15:37 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Feb 2018 00:06:29 +0000 (10:06 +1000)
We fall through to the default statement anyway

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-tablet.c

index 8188686c63369ce82e4bf7614bd1c6979be9faa1..5d901f442e630ba129b990af456c4d04abc9efe1 100644 (file)
@@ -757,16 +757,6 @@ tablet_process_key(struct tablet_dispatch *tablet,
                                                  TABLET_TOOL_LEAVING_CONTACT);
                }
                break;
-       case BTN_LEFT:
-       case BTN_RIGHT:
-       case BTN_MIDDLE:
-       case BTN_SIDE:
-       case BTN_EXTRA:
-       case BTN_FORWARD:
-       case BTN_BACK:
-       case BTN_TASK:
-       case BTN_STYLUS:
-       case BTN_STYLUS2:
        default:
                tablet_update_button(tablet, e->code, e->value);
                break;