From 7aa63d6b8b2d609a1c90ec85f53aaca3b695c70b Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 17 Nov 2020 14:50:07 +0100 Subject: [PATCH] clutter/event: Drop clutter_event_get_device_id() Drop this odd shortcut, it is now unused. Part-of: --- clutter/clutter/clutter-event.c | 23 ----------------------- clutter/clutter/clutter-event.h | 2 -- 2 files changed, 25 deletions(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index 7de601285..44a6651dd 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -1008,29 +1008,6 @@ clutter_event_get_event_sequence (const ClutterEvent *event) return NULL; } -/** - * clutter_event_get_device_id: - * @event: a clutter event - * - * Retrieves the events device id if set. - * - * Return value: A unique identifier for the device or -1 if the event has - * no specific device set. - */ -gint -clutter_event_get_device_id (const ClutterEvent *event) -{ - ClutterInputDevice *device = NULL; - - g_return_val_if_fail (event != NULL, CLUTTER_POINTER_DEVICE); - - device = clutter_event_get_device (event); - if (device != NULL) - return clutter_input_device_get_device_id (device); - - return -1; -} - /** * clutter_event_get_device_type: * @event: a #ClutterEvent diff --git a/clutter/clutter/clutter-event.h b/clutter/clutter/clutter-event.h index 69484285c..789e3fd3c 100644 --- a/clutter/clutter/clutter-event.h +++ b/clutter/clutter/clutter-event.h @@ -699,8 +699,6 @@ void clutter_event_set_stage (ClutterEvent CLUTTER_EXPORT ClutterStage * clutter_event_get_stage (const ClutterEvent *event); CLUTTER_EXPORT -gint clutter_event_get_device_id (const ClutterEvent *event); -CLUTTER_EXPORT ClutterInputDeviceType clutter_event_get_device_type (const ClutterEvent *event); CLUTTER_EXPORT void clutter_event_set_coords (ClutterEvent *event,