From fb0305321f8e6e6095ef55911092fb09e2573201 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 15 Feb 2019 08:32:04 +1000 Subject: [PATCH] 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 --- test/test-pad.c | 8 -------- 1 file changed, 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; }