From 6032be04a00a9adc3a09c1d1fcce21403ebcddc4 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Mon, 14 Aug 2023 16:04:37 +0200 Subject: [PATCH] clutter: Drop Event.get_source It was marked as deprecated for ~5 years and nothing uses it nowadays so drop it Part-of: --- clutter/clutter/clutter-event.c | 21 --------------------- clutter/clutter/clutter-event.h | 2 -- 2 files changed, 23 deletions(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index 4e2dceff2..51af8cb8c 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -509,27 +509,6 @@ clutter_event_get_position (const ClutterEvent *event, } -/** - * clutter_event_get_source: - * @event: a #ClutterEvent - * - * Retrieves the source #ClutterActor the event originated from, or - * NULL if the event has no source. - * - * Return value: (transfer none): a #ClutterActor - */ -ClutterActor * -clutter_event_get_source (const ClutterEvent *event) -{ - g_return_val_if_fail (event != NULL, NULL); - - if (event->type == CLUTTER_ENTER || - event->type == CLUTTER_LEAVE) - return event->crossing.source; - - return NULL; -} - /** * clutter_event_get_flags: * @event: a #ClutterEvent diff --git a/clutter/clutter/clutter-event.h b/clutter/clutter/clutter-event.h index 81f489b19..e989c5e29 100644 --- a/clutter/clutter/clutter-event.h +++ b/clutter/clutter/clutter-event.h @@ -172,8 +172,6 @@ ClutterInputDevice * clutter_event_get_source_device (const ClutterEv CLUTTER_EXPORT ClutterInputDeviceTool *clutter_event_get_device_tool (const ClutterEvent *event); -CLUTTER_DEPRECATED -ClutterActor * clutter_event_get_source (const ClutterEvent *event); CLUTTER_EXPORT ClutterInputDeviceType clutter_event_get_device_type (const ClutterEvent *event); CLUTTER_EXPORT