diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-02-15 08:32:04 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-02-15 08:35:52 +1000 |
commit | fb0305321f8e6e6095ef55911092fb09e2573201 (patch) | |
tree | 03cb74deaa8933ac145fcb293382a1d6d7bd7829 /test | |
parent | fa94f7569f1b5b837ec26e60c7793e268ada16d7 (diff) |
test: remove unreachable code
When the loop was reduced to BTN_DIGI only, it guaranteed that the BTN_STYLUS
condition was no longer met.
Found by coverity
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/test-pad.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/test-pad.c b/test/test-pad.c index 2965436c..6ba8925c 100644 --- a/test/test-pad.c +++ b/test/test-pad.c @@ -80,14 +80,6 @@ START_TEST(pad_time) litest_button_click(dev, code, 0); libinput_dispatch(li); - switch (code) { - case BTN_STYLUS: - litest_assert_empty_queue(li); - continue; - default: - break; - } - break; } |