summaryrefslogtreecommitdiff
path: root/registryd
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-11-11 10:07:40 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-11-11 10:07:40 -0600
commit9789bd99146a43eb87506c8f53eb401fa51c9dad (patch)
tree4f98ddcb54c8bc55800a3d26eb4285159a641c53 /registryd
parentafa02936270ad2f0f4b82f7fbfd0fcf92845b5d2 (diff)
downloadat-spi2-core-9789bd99146a43eb87506c8f53eb401fa51c9dad.tar.gz
Remove unused argument
Accessibility_DeviceEventListener_NotifyEvent() does not use its "registry" argument. Calls to this function were the only place where dec->registry was purportedly used, so removing the argument will allow us to decouple the Device Event Controller from the Registry.
Diffstat (limited to 'registryd')
-rw-r--r--registryd/deviceeventcontroller.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index c68909c5..5ce90679 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -973,7 +973,6 @@ send_and_allow_reentry (DBusConnection *bus, DBusMessage *message, int timeout,
}
static gboolean
Accessibility_DeviceEventListener_NotifyEvent(SpiDEController *controller,
- SpiRegistry *registry,
DEControllerListener *listener,
const Accessibility_DeviceEvent *key_event)
{
@@ -1060,7 +1059,7 @@ spi_controller_notify_mouselisteners (SpiDEController *controlle
{
DEControllerListener *listener = l2->data;
- is_consumed = Accessibility_DeviceEventListener_NotifyEvent (controller, controller->registry, listener, event);
+ is_consumed = Accessibility_DeviceEventListener_NotifyEvent (controller, listener, event);
spi_listener_clone_free ((DEControllerListener *) l2->data);
}
@@ -1209,7 +1208,7 @@ spi_controller_notify_keylisteners (SpiDEController *controller,
{
DEControllerKeyListener *key_listener = l2->data;
- is_consumed = Accessibility_DeviceEventListener_NotifyEvent (controller, controller->registry, &key_listener->listener, key_event) &&
+ is_consumed = Accessibility_DeviceEventListener_NotifyEvent (controller, &key_listener->listener, key_event) &&
key_listener->mode->preemptive;
spi_key_listener_clone_free (key_listener);