Remove duplicate empty lines in our source
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 22 Nov 2022 22:41:07 +0000 (08:41 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 25 Nov 2022 00:08:20 +0000 (10:08 +1000)
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>
22 files changed:
src/evdev-mt-touchpad.c
src/evdev.c
src/evdev.h
src/filter-touchpad-flat.c
src/filter-trackpoint-flat.c
src/filter-trackpoint.c
src/libinput-private.h
src/libinput-util.h
src/path-seat.c
src/quirks.c
src/quirks.h
src/udev-seat.c
src/util-bits.h
src/util-input-event.h
src/util-list.h
src/util-macros.h
src/util-matrix.h
src/util-strings.c
tools/libinput-debug-events.c
tools/libinput-debug-gui.c
tools/libinput-record.c
tools/shared.c

index a6afbdaca329b917fc7451457f9928244ec569cb..c79133b5db4d1d4963cd2564533c86ef7460a070 100644 (file)
@@ -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);
 
index 426933d1f6ca18c98c1ea0cd07b358e3f2bf4aff..2c4d4726267d9b64aab2cf9831be84ffbbbfce56 100644 (file)
@@ -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++) {
index 980c5943759b8454cfab8498bfbb4c0b514ee68a..0f0087a35b3ad319004efd86ce8ffc39de4a9854 100644 (file)
@@ -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,
index 9c0075bd29e3d2281798b29bfc66f3ad2c722551..ac1a15c1f5dfb34ab41caf4cd05868e7c3980117 100644 (file)
@@ -34,7 +34,6 @@
 #include "libinput-util.h"
 #include "filter-private.h"
 
-
 #define TP_MAGIC_SLOWDOWN_FLAT 0.2968
 
 struct touchpad_accelerator_flat {
index d650a6674f32a97bc9f11bab1061602178369756..7f63a0e3e2b4fcfc513dcd37774f142b1c2e8e90 100644 (file)
@@ -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;
 }
 
index d1731e28980c9f34921bcdec07cca0a8b4dd47b0..a46729b78a4b9770e33856a474bbaa8c7d056beb 100644 (file)
@@ -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;
 }
 
index aca4d96525d52d352baf0b4d13ede35ed5a728ee..f20944bb0dbf8981a4de48622dcab270224c7e45 100644 (file)
@@ -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 */
index 275d8c0bc8836f0e91d66b42d60e6938cfb47a3a..8b14f76de9249cec3f69eeefe5b2009df406ed65 100644 (file)
@@ -31,7 +31,6 @@
 #warning "libinput relies on assert(). #defining NDEBUG is not recommended"
 #endif
 
-
 #include "libinput.h"
 
 #include "util-bits.h"
index 1d9282febe4df67c5b371b5cd8c494fd2e009dd0..560c0b4520fe4d9dd3c8f5e8d6ddbd97f79fca33 100644 (file)
@@ -44,7 +44,6 @@ struct path_seat {
        struct libinput_seat base;
 };
 
-
 static const char default_seat[] = "seat0";
 static const char default_seat_name[] = "default";
 
index c264dd389e3c41025943f1f47f096b56aef91b57..932706f38cfb0833e0a625a4f6cd0bbce162f7b8 100644 (file)
@@ -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)
 {
index bb01f8b52e440eafcdf05a8b2200edc436ac3a9c..8f1aae918ee8917cd00b8ec4b5ceece7e457d6f5 100644 (file)
@@ -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,
index 7fc1dcefc5bdea94c82043f5ad62853467743ae8..fb1a4a3dc89d4bb91012527b3901b1e3da442673 100644 (file)
@@ -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)
index 47c40f387fe9040ec2b7e99803507d8fc1ec3280..b4e58d38d23e8dc8c4028fb2f293fee22ee02dd5 100644 (file)
@@ -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
  */
index 0c49bf730d8418730e0574a14bcd2bdca1bc7d26..8a81aec580d21f07ab3f33b4a2504313e668476d 100644 (file)
@@ -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)
index 6c7f3bdfa0d4f74c93dddc6bf6b2182a1cef0236..a9f0c87b9e4ddd611f37f99d4725fe9cbc2c5f21 100644 (file)
@@ -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:
index 004b0ccfcbd08ace7320b0b8802b1b5b631e8231..d56a8a3fd767b61e728769049f992f1ef6cb5834 100644 (file)
 #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))
index e5a60cb0eab08211931a60cf69188927cdf15c2e..e9d680ed7e863e288ee5666c00037d18333efc80 100644 (file)
@@ -22,7 +22,6 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-
 #pragma once
 
 #include "config.h"
index 4cd26743783ac4d7f90cc40d3a2187c0c9716065..d0a3fa012e502d2749ee38358fb1ba39a4b52083 100644 (file)
@@ -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:
index 8b8da6f15acc16e82e2f3102a79f8a0a6611a3f2..9ad71b6a56af5498864e459c8f5a731a5122ccd1 100644 (file)
@@ -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)
 {
index 60df2ae5c84b3a4f78dec1cc4503da726309ea18..1380862dcc205ddb122d65b643e67aea7f2e7bb0 100644 (file)
@@ -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);
index 98b488115c1027d828bae82d624126e99613b744..0b03ad0601c99dd3298b0331d6732fb53641e120 100644 (file)
@@ -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
index 760327a471c37148fbabe9047bbd2ed69b2d3f47..8dc3b607e43313cd58536f1ff8b763e6dffefc28 100644 (file)
@@ -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);