diff --git a/clutter/clutter/clutter-event-private.h b/clutter/clutter/clutter-event-private.h index 668be6ef9..011241ce1 100644 --- a/clutter/clutter/clutter-event-private.h +++ b/clutter/clutter/clutter-event-private.h @@ -18,7 +18,6 @@ gboolean _clutter_event_process_filters (ClutterEvent *eve /* clears the event queue inside the main context */ void _clutter_clear_events_queue (void); -void _clutter_clear_events_queue_for_stage (ClutterStage *stage); CLUTTER_EXPORT void _clutter_event_set_platform_data (ClutterEvent *event, diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c index b95f1c8e6..1dbca4782 100644 --- a/clutter/clutter/clutter-main.c +++ b/clutter/clutter/clutter-main.c @@ -2327,30 +2327,6 @@ _clutter_clear_events_queue (void) } } -void -_clutter_clear_events_queue_for_stage (ClutterStage *stage) -{ - ClutterMainContext *context = _clutter_context_get_default (); - GList *l, *next; - - if (context->events_queue == NULL) - return; - - /* Remove any pending events for this stage from the event queue */ - for (l = context->events_queue->head; l; l = next) - { - ClutterEvent *event = l->data; - - next = l->next; - - if (event->any.stage == stage) - { - g_queue_delete_link (context->events_queue, l); - clutter_event_free (event); - } - } -} - ClutterPickMode _clutter_context_get_pick_mode (void) { diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index e4c129ead..14e04e1a5 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -1680,7 +1680,7 @@ clutter_stage_dispose (GObject *object) clutter_actor_hide (CLUTTER_ACTOR (object)); - _clutter_clear_events_queue_for_stage (stage); + _clutter_clear_events_queue (); if (priv->impl != NULL) {