mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-19 08:58:23 +02:00
test: drop the needless base event conversion
This was just there to avoid unused variable warnings but the simpler approach to that is to just not assign a variable in the first place. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b8d4197697
commit
06ef838b5b
1 changed files with 4 additions and 6 deletions
|
|
@ -3835,13 +3835,12 @@ litest_assert_pad_button_event(struct libinput *li,
|
|||
enum libinput_button_state state)
|
||||
{
|
||||
struct libinput_event *event;
|
||||
struct libinput_event_tablet_pad *pev;
|
||||
|
||||
litest_wait_for_event(li);
|
||||
event = libinput_get_event(li);
|
||||
|
||||
pev = litest_is_pad_button_event(event, button, state);
|
||||
libinput_event_destroy(libinput_event_tablet_pad_get_base_event(pev));
|
||||
litest_is_pad_button_event(event, button, state);
|
||||
libinput_event_destroy(event);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -3850,13 +3849,12 @@ litest_assert_pad_key_event(struct libinput *li,
|
|||
enum libinput_key_state state)
|
||||
{
|
||||
struct libinput_event *event;
|
||||
struct libinput_event_tablet_pad *pev;
|
||||
|
||||
litest_wait_for_event(li);
|
||||
event = libinput_get_event(li);
|
||||
|
||||
pev = litest_is_pad_key_event(event, key, state);
|
||||
libinput_event_destroy(libinput_event_tablet_pad_get_base_event(pev));
|
||||
litest_is_pad_key_event(event, key, state);
|
||||
libinput_event_destroy(event);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue