diff options
author | emersion <contact@emersion.fr> | 2018-04-28 12:47:28 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-28 12:48:05 +0100 |
commit | 79da4c175eca6f2db5e167a9e3c40ef343d6cd87 (patch) | |
tree | 1c3b6729232f2db13b96326849ad16c353de4baa /backend/headless/input_device.c | |
parent | 57c36ddcb346e1e2443ad606ff214dc4a74b97b4 (diff) |
backend/headless: remove useless destructor
Diffstat (limited to 'backend/headless/input_device.c')
-rw-r--r-- | backend/headless/input_device.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c index daa22436..a1e18428 100644 --- a/backend/headless/input_device.c +++ b/backend/headless/input_device.c @@ -9,15 +9,7 @@ #include "backend/headless.h" #include "util/signal.h" -static void input_device_destroy(struct wlr_input_device *wlr_dev) { - struct wlr_headless_input_device *device = - (struct wlr_headless_input_device *)wlr_dev; - free(device); -} - -static const struct wlr_input_device_impl input_device_impl = { - .destroy = input_device_destroy, -}; +static const struct wlr_input_device_impl input_device_impl = { 0 }; bool wlr_input_device_is_headless(struct wlr_input_device *wlr_dev) { return wlr_dev->impl == &input_device_impl; |