diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-13 00:34:52 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-13 08:07:44 +0200 |
commit | 701e147b9b16fadf740b64deb89eb3f0a83980fa (patch) | |
tree | 9de7d8f64db4209e932599ae4df2b3c4ca859797 /backend/libinput | |
parent | 60d1131df2d1fce40d507f290949eba55baa2087 (diff) |
libinput: remove useless get_context call
That function is literally just "return event->device->seat->libinput"
We do not use context, so do not fetch it.
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/events.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c index f4a8e50a..9897dd3e 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -134,10 +134,8 @@ static void handle_device_removed(struct wlr_libinput_backend *backend, void wlr_libinput_event(struct wlr_libinput_backend *backend, struct libinput_event *event) { assert(backend && event); - struct libinput *context = libinput_event_get_context(event); struct libinput_device *device = libinput_event_get_device(event); enum libinput_event_type event_type = libinput_event_get_type(event); - (void)context; switch (event_type) { case LIBINPUT_EVENT_DEVICE_ADDED: handle_device_added(backend, device); |