[mutter/wip/carlosg/no-device-id: 4/9] clutter/event: Drop clutter_event_get_device_id()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/no-device-id: 4/9] clutter/event: Drop clutter_event_get_device_id()
- Date: Tue, 17 Nov 2020 15:36:04 +0000 (UTC)
commit c4e3e298fc47851967e178708b2a0f86a149f7ca
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 17 14:50:07 2020 +0100
clutter/event: Drop clutter_event_get_device_id()
Drop this odd shortcut, it is now unused.
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 7de601285d..44a6651ddb 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 69484285c6..789e3fd3c1 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]