Remove some duplicate empty lines

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-04-16 08:37:06 +10:00
parent 8a223e739b
commit b2fb2adefa
10 changed files with 0 additions and 25 deletions

View file

@ -756,7 +756,6 @@
#define ABS_MT_TOOL_X 0x3c /* Center X tool position */ #define ABS_MT_TOOL_X 0x3c /* Center X tool position */
#define ABS_MT_TOOL_Y 0x3d /* Center Y tool position */ #define ABS_MT_TOOL_Y 0x3d /* Center Y tool position */
#define ABS_MAX 0x3f #define ABS_MAX 0x3f
#define ABS_CNT (ABS_MAX+1) #define ABS_CNT (ABS_MAX+1)

View file

@ -34,7 +34,6 @@
'filtered' .. event is not sent (but may be sent later) 'filtered' .. event is not sent (but may be sent later)
'delayed' ... event is sent with wall-clock delay 'delayed' ... event is sent with wall-clock delay
1) P---| R P normal, R normal 1) P---| R P normal, R normal
2) R---| P R normal, P normal 2) R---| P R normal, P normal
3) P---R--| P P normal, R filtered, delayed, P normal 3) P---R--| P P normal, R filtered, delayed, P normal
@ -61,7 +60,6 @@
the second event). These cases are currently unhandled. the second event). These cases are currently unhandled.
*/ */
enum debounce_event { enum debounce_event {
DEBOUNCE_EVENT_PRESS = 50, DEBOUNCE_EVENT_PRESS = 50,
DEBOUNCE_EVENT_RELEASE, DEBOUNCE_EVENT_RELEASE,
@ -522,7 +520,6 @@ fallback_debounce_handle_state(struct fallback_dispatch *dispatch,
flushed = false; flushed = false;
} }
dispatch->debounce.button_code = changed[i]; dispatch->debounce.button_code = changed[i];
debounce_handle_event(dispatch, debounce_handle_event(dispatch,
is_down ? is_down ?
@ -574,7 +571,6 @@ fallback_init_debounce(struct fallback_dispatch *dispatch)
return; return;
} }
dispatch->debounce.state = DEBOUNCE_STATE_IS_UP; dispatch->debounce.state = DEBOUNCE_STATE_IS_UP;
snprintf(timer_name, snprintf(timer_name,

View file

@ -211,7 +211,6 @@ fallback_flush_wheels(struct fallback_dispatch *dispatch,
if (!(device->seat_caps & EVDEV_DEVICE_POINTER)) if (!(device->seat_caps & EVDEV_DEVICE_POINTER))
return; return;
if (dispatch->wheel.y != 0) { if (dispatch->wheel.y != 0) {
wheel_degrees.y = -1 * dispatch->wheel.y * wheel_degrees.y = -1 * dispatch->wheel.y *
device->scroll.wheel_click_angle.y; device->scroll.wheel_click_angle.y;
@ -830,7 +829,6 @@ fallback_handle_state(struct fallback_dispatch *dispatch,
slot->state = SLOT_STATE_NONE; slot->state = SLOT_STATE_NONE;
} }
slot->dirty = false; slot->dirty = false;
} }
@ -1153,7 +1151,6 @@ fallback_tablet_mode_switch_event(uint64_t time,
LIBINPUT_SWITCH_TABLET_MODE) LIBINPUT_SWITCH_TABLET_MODE)
return; return;
switch (libinput_event_switch_get_switch_state(swev)) { switch (libinput_event_switch_get_switch_state(swev)) {
case LIBINPUT_SWITCH_STATE_OFF: case LIBINPUT_SWITCH_STATE_OFF:
fallback_resume(dispatch, device); fallback_resume(dispatch, device);

View file

@ -182,7 +182,6 @@ tp_detect_wobbling(struct tp_dispatch *tp,
if (dx > 0) { /* right move */ if (dx > 0) { /* right move */
static const char r_l_r = 0x5; /* {Right, Left, Right} */ static const char r_l_r = 0x5; /* {Right, Left, Right} */
t->hysteresis.x_motion_history |= (1 << 2); t->hysteresis.x_motion_history |= (1 << 2);
if (t->hysteresis.x_motion_history == r_l_r) { if (t->hysteresis.x_motion_history == r_l_r) {
tp->hysteresis.enabled = true; tp->hysteresis.enabled = true;

View file

@ -1194,7 +1194,6 @@ evdev_get_trackpoint_range(struct evdev_device *device)
"guessing... see %strackpoints.html\n", "guessing... see %strackpoints.html\n",
HTTP_DOC_LINK); HTTP_DOC_LINK);
prop = udev_device_get_property_value(device->udev_device, prop = udev_device_get_property_value(device->udev_device,
"POINTINGSTICK_SENSITIVITY"); "POINTINGSTICK_SENSITIVITY");
if (prop) { if (prop) {

View file

@ -56,4 +56,3 @@ TEST_DEVICE("ms-nano-mouse",
.absinfo = NULL, .absinfo = NULL,
.events = events, .events = events,
) )

View file

@ -320,7 +320,6 @@ START_TEST(pad_button_libwacom)
LIBINPUT_BUTTON_STATE_RELEASED); LIBINPUT_BUTTON_STATE_RELEASED);
} }
libwacom_destroy(wacom); libwacom_destroy(wacom);
libwacom_database_destroy(db); libwacom_database_destroy(db);
#endif #endif

View file

@ -2498,7 +2498,6 @@ START_TEST(debounce_spurious_switch_to_otherbutton)
litest_timeout_debounce(); litest_timeout_debounce();
libinput_dispatch(li); libinput_dispatch(li);
litest_event(dev, EV_KEY, BTN_LEFT, 0); litest_event(dev, EV_KEY, BTN_LEFT, 0);
litest_event(dev, EV_SYN, SYN_REPORT, 0); litest_event(dev, EV_SYN, SYN_REPORT, 0);
/* release is now held back, /* release is now held back,

View file

@ -2647,7 +2647,6 @@ START_TEST(touchpad_tap_palm_on_tapped)
BTN_LEFT, BTN_LEFT,
LIBINPUT_BUTTON_STATE_RELEASED); LIBINPUT_BUTTON_STATE_RELEASED);
litest_assert_empty_queue(li); litest_assert_empty_queue(li);
} }
END_TEST END_TEST
@ -2689,7 +2688,6 @@ START_TEST(touchpad_tap_palm_on_tapped_palm_down)
BTN_LEFT, BTN_LEFT,
LIBINPUT_BUTTON_STATE_RELEASED); LIBINPUT_BUTTON_STATE_RELEASED);
litest_assert_empty_queue(li); litest_assert_empty_queue(li);
} }
END_TEST END_TEST
@ -2741,7 +2739,6 @@ START_TEST(touchpad_tap_palm_on_tapped_2fg)
BTN_LEFT, BTN_LEFT,
LIBINPUT_BUTTON_STATE_RELEASED); LIBINPUT_BUTTON_STATE_RELEASED);
litest_touch_up(dev, 0); litest_touch_up(dev, 0);
litest_assert_empty_queue(li); litest_assert_empty_queue(li);
} }
@ -2862,7 +2859,6 @@ START_TEST(touchpad_tap_palm_on_touch_2)
litest_drain_events(li); litest_drain_events(li);
litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1); litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
litest_touch_up(dev, this); litest_touch_up(dev, this);
litest_touch_up(dev, other); litest_touch_up(dev, other);
@ -2875,7 +2871,6 @@ START_TEST(touchpad_tap_palm_on_touch_2)
BTN_LEFT, BTN_LEFT,
LIBINPUT_BUTTON_STATE_RELEASED); LIBINPUT_BUTTON_STATE_RELEASED);
litest_assert_empty_queue(li); litest_assert_empty_queue(li);
} }
END_TEST END_TEST
@ -2892,7 +2887,6 @@ START_TEST(touchpad_tap_palm_on_touch_2_retouch)
int this = which % 2, int this = which % 2,
other = (which + 1) % 2; other = (which + 1) % 2;
if (!touchpad_has_palm_pressure(dev)) if (!touchpad_has_palm_pressure(dev))
return; return;
@ -3076,7 +3070,6 @@ START_TEST(touchpad_tap_palm_after_tap)
litest_enable_tap(dev->libinput_device); litest_enable_tap(dev->libinput_device);
litest_drain_events(li); litest_drain_events(li);
litest_touch_down(dev, 0, 50, 50); litest_touch_down(dev, 0, 50, 50);
litest_touch_up(dev, 0); litest_touch_up(dev, 0);
libinput_dispatch(li); libinput_dispatch(li);
@ -3096,7 +3089,6 @@ START_TEST(touchpad_tap_palm_after_tap)
BTN_LEFT, BTN_LEFT,
LIBINPUT_BUTTON_STATE_RELEASED); LIBINPUT_BUTTON_STATE_RELEASED);
litest_assert_empty_queue(li); litest_assert_empty_queue(li);
} }
END_TEST END_TEST

View file

@ -213,7 +213,6 @@ print_evdev_event(struct record_context *ctx, struct input_event *ev)
static unsigned long last_ms = 0; static unsigned long last_ms = 0;
unsigned long time, dt; unsigned long time, dt;
time = us2ms(tv2us(&ev->time)); time = us2ms(tv2us(&ev->time));
if (last_ms == 0) if (last_ms == 0)
last_ms = time; last_ms = time;
@ -1020,7 +1019,6 @@ print_bits_absinfo(struct record_context *ctx, struct libevdev *dev)
indent_pop(ctx); indent_pop(ctx);
} }
static inline void static inline void
print_bits_codes(struct record_context *ctx, print_bits_codes(struct record_context *ctx,
struct libevdev *dev, struct libevdev *dev,
@ -1528,7 +1526,6 @@ mainloop(struct record_context *ctx)
sigprocmask(SIG_UNBLOCK, &mask, NULL); sigprocmask(SIG_UNBLOCK, &mask, NULL);
return 0; return 0;
} }
@ -1769,7 +1766,6 @@ main(int argc, char **argv)
goto out; goto out;
} }
devices = all_devices(); devices = all_devices();
d = devices; d = devices;