mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 13:00:15 +01:00
test: remove some useless code triggering a coverity warning
x/y assigned but never used. Dropping those few lines gets rid of the warning and checks the coordinates correctly now too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
883e0a1eea
commit
cfa06b6098
1 changed files with 0 additions and 6 deletions
|
|
@ -5173,12 +5173,6 @@ verify_left_handed_touch_motion(struct litest_device *finger,
|
|||
litest_touch_move_to(finger, 0, x + 1, y - 1, x + 20, y - 20, 10);
|
||||
libinput_dispatch(li);
|
||||
|
||||
event = libinput_get_event(li);
|
||||
p = litest_is_motion_event(event);
|
||||
x = libinput_event_pointer_get_dx(p);
|
||||
y = libinput_event_pointer_get_dy(p);
|
||||
libinput_event_destroy(event);
|
||||
|
||||
event = libinput_get_event(li);
|
||||
ck_assert_notnull(event);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue