From bd387a63083427cd51b6d9f64c7d96badd52685d Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 30 Oct 2023 13:04:14 +0100 Subject: [PATCH] clutter: Drop clutter_event_new() from public headers This is a leftover of the port to immutable events, and should not be used. Part-of: --- clutter/clutter/clutter-event.c | 10 +--------- clutter/clutter/clutter-event.h | 2 -- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index 13f9263f6..7723c8504 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -809,15 +809,7 @@ clutter_event_get_device_tool (const ClutterEvent *event) } } -/** - * clutter_event_new: - * @type: The type of event. - * - * Creates a new #ClutterEvent of the specified type. - * - * Return value: (transfer full): A newly allocated #ClutterEvent. - */ -ClutterEvent * +static ClutterEvent * clutter_event_new (ClutterEventType type) { ClutterEvent *new_event; diff --git a/clutter/clutter/clutter-event.h b/clutter/clutter/clutter-event.h index 89e4c01ad..282b9a68b 100644 --- a/clutter/clutter/clutter-event.h +++ b/clutter/clutter/clutter-event.h @@ -148,8 +148,6 @@ guint clutter_event_add_filter (ClutterStage CLUTTER_EXPORT void clutter_event_remove_filter (guint id); -CLUTTER_EXPORT -ClutterEvent * clutter_event_new (ClutterEventType type); CLUTTER_EXPORT ClutterEvent * clutter_event_copy (const ClutterEvent *event); CLUTTER_EXPORT