mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
backend/headless: remove useless destructor
This commit is contained in:
parent
57c36ddcb3
commit
79da4c175e
4 changed files with 11 additions and 22 deletions
|
|
@ -13,7 +13,8 @@ struct wlr_libinput_keyboard {
|
|||
};
|
||||
|
||||
static void keyboard_set_leds(struct wlr_keyboard *wlr_kb, uint32_t leds) {
|
||||
struct wlr_libinput_keyboard *wlr_libinput_kb = (struct wlr_libinput_keyboard *)wlr_kb;
|
||||
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
||||
(struct wlr_libinput_keyboard *)wlr_kb;
|
||||
libinput_device_led_update(wlr_libinput_kb->libinput_dev, leds);
|
||||
}
|
||||
|
||||
|
|
@ -21,6 +22,7 @@ static void keyboard_destroy(struct wlr_keyboard *wlr_kb) {
|
|||
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
||||
(struct wlr_libinput_keyboard *)wlr_kb;
|
||||
libinput_device_unref(wlr_libinput_kb->libinput_dev);
|
||||
free(wlr_libinput_kb);
|
||||
}
|
||||
|
||||
struct wlr_keyboard_impl impl = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue