From 09ade380023daed00b5c573547f7b1f18c844c10 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 17 Aug 2023 14:58:53 +0200 Subject: [PATCH] clutter: Drop ClutterEventPrivate struct This is no longer necessary to wrap the public event data. Part-of: --- clutter/clutter/clutter-event.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index d557c9dbf..e7ae4b7ae 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -300,10 +300,6 @@ union _ClutterEvent ClutterIMEvent im; }; -typedef struct _ClutterEventPrivate { - ClutterEvent base; -} ClutterEventPrivate; - typedef struct _ClutterEventFilter { int id; @@ -815,12 +811,9 @@ ClutterEvent * clutter_event_new (ClutterEventType type) { ClutterEvent *new_event; - ClutterEventPrivate *priv; - priv = g_new0 (ClutterEventPrivate, 1); - - new_event = (ClutterEvent *) priv; - new_event->type = new_event->any.type = type; + new_event = g_new0 (ClutterEvent, 1); + new_event->any.type = type; return new_event; } @@ -945,7 +938,7 @@ clutter_event_free (ClutterEvent *event) break; } - g_free ((ClutterEventPrivate *) event); + g_free (event); } }