mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 07:40:04 +01:00
Remove duplicate empty lines in our source
We only touch src and tools, imported headers from include are not ours to change. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d2f6773831
commit
a5dd45e8ce
22 changed files with 0 additions and 30 deletions
|
|
@ -679,7 +679,6 @@ tp_process_fake_touches(struct tp_dispatch *tp,
|
|||
tp->num_slots = tp->nactive_slots;
|
||||
}
|
||||
|
||||
|
||||
start = tp->has_mt ? tp->num_slots : 0;
|
||||
for (i = start; i < tp->ntouches; i++) {
|
||||
t = tp_get_touch(tp, i);
|
||||
|
|
@ -2213,7 +2212,6 @@ tp_trackpoint_event(uint64_t time, struct libinput_event *event, void *data)
|
|||
tp->palm.trackpoint_last_event_time = time;
|
||||
tp->palm.trackpoint_event_count++;
|
||||
|
||||
|
||||
/* Require at least three events before enabling palm detection */
|
||||
if (tp->palm.trackpoint_event_count < 3) {
|
||||
libinput_timer_set(&tp->palm.trackpoint_timer,
|
||||
|
|
@ -3618,7 +3616,6 @@ tp_init_pressure(struct tp_dispatch *tp,
|
|||
lo = abs->minimum + 0.10 * range;
|
||||
}
|
||||
|
||||
|
||||
if (hi > abs->maximum || hi < abs->minimum ||
|
||||
lo > abs->maximum || lo < abs->minimum) {
|
||||
evdev_log_bug_libinput(device,
|
||||
|
|
@ -3731,7 +3728,6 @@ tp_init(struct tp_dispatch *tp,
|
|||
if (!tp_init_slots(tp, device))
|
||||
return false;
|
||||
|
||||
|
||||
evdev_device_init_abs_range_warnings(device);
|
||||
use_touch_size = tp_init_touch_size(tp, device);
|
||||
|
||||
|
|
|
|||
|
|
@ -862,7 +862,6 @@ evdev_scroll_get_default_button_lock(struct libinput_device *device)
|
|||
return LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
evdev_set_button_scroll_lock_enabled(struct evdev_device *device,
|
||||
bool enabled)
|
||||
|
|
@ -1899,7 +1898,6 @@ evdev_device_is_joystick_or_gamepad(struct evdev_device *device)
|
|||
if (!has_joystick_tags)
|
||||
return false;
|
||||
|
||||
|
||||
unsigned int num_well_known_keys = 0;
|
||||
|
||||
for (size_t i = 0; i < ARRAY_LENGTH(well_known_keyboard_keys); i++) {
|
||||
|
|
|
|||
|
|
@ -338,7 +338,6 @@ struct evdev_dispatch_interface {
|
|||
const struct phys_rect *rect,
|
||||
uint64_t now);
|
||||
|
||||
|
||||
/* Return the state of the given switch */
|
||||
enum libinput_switch_state
|
||||
(*get_switch_state)(struct evdev_dispatch *dispatch,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
#include "libinput-util.h"
|
||||
#include "filter-private.h"
|
||||
|
||||
|
||||
#define TP_MAGIC_SLOWDOWN_FLAT 0.2968
|
||||
|
||||
struct touchpad_accelerator_flat {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,6 @@ trackpoint_flat_set_speed(struct motion_filter *filter,
|
|||
filter->speed_adjustment = speed_adjustment;
|
||||
accel_filter->speed_factor = speed_factor(speed_adjustment);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ trackpoint_accelerator_set_speed(struct motion_filter *filter,
|
|||
filter->speed_adjustment = speed_adjustment;
|
||||
accel_filter->speed_factor = speed_factor(speed_adjustment);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -467,7 +467,6 @@ is_logged(const struct libinput *libinput,
|
|||
libinput->log_priority <= priority;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
log_msg_ratelimit(struct libinput *libinput,
|
||||
struct ratelimit *ratelimit,
|
||||
|
|
@ -923,5 +922,4 @@ static inline void *libinput_libwacom_ref(struct libinput *li) { return NULL; }
|
|||
static inline void libinput_libwacom_unref(struct libinput *li) {}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* LIBINPUT_PRIVATE_H */
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#warning "libinput relies on assert(). #defining NDEBUG is not recommended"
|
||||
#endif
|
||||
|
||||
|
||||
#include "libinput.h"
|
||||
|
||||
#include "util-bits.h"
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ struct path_seat {
|
|||
struct libinput_seat base;
|
||||
};
|
||||
|
||||
|
||||
static const char default_seat[] = "seat0";
|
||||
static const char default_seat_name[] = "default";
|
||||
|
||||
|
|
|
|||
|
|
@ -1517,7 +1517,6 @@ quirks_fetch_for_device(struct quirks_context *ctx,
|
|||
return q;
|
||||
}
|
||||
|
||||
|
||||
static inline struct property *
|
||||
quirk_find_prop(struct quirks *q, enum quirk which)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -88,7 +88,6 @@ enum quirk {
|
|||
|
||||
_QUIRK_LAST_MODEL_QUIRK_, /* Guard: do not modify */
|
||||
|
||||
|
||||
QUIRK_ATTR_SIZE_HINT = 300,
|
||||
QUIRK_ATTR_TOUCH_SIZE_RANGE,
|
||||
QUIRK_ATTR_PALM_SIZE_THRESHOLD,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ udev_seat_create(struct udev_input *input,
|
|||
static struct udev_seat *
|
||||
udev_seat_get_named(struct udev_input *input, const char *seat_name);
|
||||
|
||||
|
||||
static inline bool
|
||||
filter_duplicates(struct udev_seat *udev_seat,
|
||||
struct udev_device *udev_device)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
#define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
|
||||
#define NCHARS(x) ((size_t)(((x) + 7) / 8))
|
||||
|
||||
|
||||
/* This bitfield helper implementation is taken from from libevdev-util.h,
|
||||
* except that it has been modified to work with arrays of unsigned chars
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ input_event_time(const struct input_event *e)
|
|||
return tv2us(&tval);
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
input_event_set_time(struct input_event *e,
|
||||
uint64_t time)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
* Wayland project; except that wl_ prefix has been removed.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Doubly linked list implementation. This struct is used for both the list
|
||||
* nodes and the list head. Use like this:
|
||||
|
|
|
|||
|
|
@ -55,13 +55,11 @@
|
|||
#define ANSI_BRIGHT_CYAN "\x1B[0;36;1m"
|
||||
#define ANSI_NORMAL "\x1B[0m"
|
||||
|
||||
|
||||
#define ANSI_UP "\x1B[%dA"
|
||||
#define ANSI_DOWN "\x1B[%dB"
|
||||
#define ANSI_RIGHT "\x1B[%dC"
|
||||
#define ANSI_LEFT "\x1B[%dD"
|
||||
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a
|
||||
|
||||
#define _fallthrough_ __attribute__((fallthrough))
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config.h"
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ strv_from_string(const char *in, const char *separators, size_t *num_elements)
|
|||
{
|
||||
assert(in != NULL);
|
||||
|
||||
|
||||
const char *s = in;
|
||||
size_t l, nelems = 0;
|
||||
while (next_word(&s, &l, separators) != NULL)
|
||||
|
|
@ -216,7 +215,6 @@ safe_basename(const char *filename)
|
|||
return basename + 1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Similar to basename() but returns the trunk only without the (last)
|
||||
* trailing suffix, so that:
|
||||
|
|
|
|||
|
|
@ -819,7 +819,6 @@ print_tablet_pad_key_event(struct libinput_event *ev)
|
|||
state == LIBINPUT_KEY_STATE_PRESSED ? "pressed" : "released");
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
print_switch_event(struct libinput_event *ev)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -789,7 +789,6 @@ draw_tablet(struct window *w, cairo_t *cr)
|
|||
}
|
||||
cairo_restore(cr);
|
||||
|
||||
|
||||
/* tablet tool, square for prox-in location */
|
||||
cairo_save(cr);
|
||||
cairo_set_source_rgb(cr, .2, .6, .6);
|
||||
|
|
|
|||
|
|
@ -965,7 +965,6 @@ print_tablet_tool_button_event(struct record_device *dev,
|
|||
abort();
|
||||
}
|
||||
|
||||
|
||||
button = libinput_event_tablet_tool_get_button(t);
|
||||
state = libinput_event_tablet_tool_get_button_state(t);
|
||||
time = time_offset(dev->ctx, libinput_event_tablet_tool_get_time_usec(t));
|
||||
|
|
@ -1071,7 +1070,6 @@ print_tablet_pad_button_event(struct record_device *dev,
|
|||
libinput_tablet_pad_mode_group_button_is_toggle(group, button) ? "true" : "false"
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -460,7 +460,6 @@ tools_device_apply_config(struct libinput_device *device,
|
|||
libinput_device_config_scroll_set_button_lock(device,
|
||||
options->scroll_button_lock);
|
||||
|
||||
|
||||
if (libinput_device_config_accel_is_available(device)) {
|
||||
libinput_device_config_accel_set_speed(device,
|
||||
options->speed);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue