From a93a0597c5c73bb2c7ca848359ae091bc7270806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 22 Jan 2014 23:59:05 +0100 Subject: [PATCH] Remove redundant device pointer from device notify event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ã…dahl --- src/libinput.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libinput.c b/src/libinput.c index 92ba4143..99e3d8ed 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -48,7 +48,6 @@ struct libinput_event { struct libinput_event_device_notify { struct libinput_event base; - struct libinput_device *device; }; struct libinput_event_keyboard { @@ -611,10 +610,6 @@ notify_added_device(struct libinput_device *device) if (!added_device_event) return; - *added_device_event = (struct libinput_event_device_notify) { - .device = device, - }; - post_base_event(device, LIBINPUT_EVENT_DEVICE_ADDED, &added_device_event->base); @@ -629,10 +624,6 @@ notify_removed_device(struct libinput_device *device) if (!removed_device_event) return; - *removed_device_event = (struct libinput_event_device_notify) { - .device = device, - }; - post_base_event(device, LIBINPUT_EVENT_DEVICE_REMOVED, &removed_device_event->base);