pad: remove an unused argument
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 24 Oct 2024 04:27:30 +0000 (14:27 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Oct 2024 00:28:08 +0000 (10:28 +1000)
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1070>

src/evdev-tablet-pad-leds.c

index 332bc7f62466fdb2347d3044706ec5df64c2a1aa..bcb41644c49f0ad175e7ac964f88e43ea14fc2ce 100644 (file)
@@ -342,7 +342,6 @@ pad_get_mode_group(struct pad_dispatch *pad, unsigned int index)
 
 static inline struct pad_mode_toggle_button *
 pad_mode_toggle_button_new(struct pad_dispatch *pad,
-                          struct libinput_tablet_pad_mode_group *group,
                           unsigned int button_index)
 {
        struct pad_mode_toggle_button *button;
@@ -422,7 +421,7 @@ pad_init_mode_buttons(struct pad_dispatch *pad,
                        struct pad_mode_toggle_button *b;
                        struct pad_led_group *g;
 
-                       b = pad_mode_toggle_button_new(pad, group, i);
+                       b = pad_mode_toggle_button_new(pad, i);
                        if (!b)
                                return 1;
                        g = (struct pad_led_group*)group;