From 01ccc54ce8adb51936c37f5b683128e5cf39e15e Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 9 Oct 2020 16:32:57 -0300 Subject: [PATCH] clutter/actor: Remove unnecessary check The stage clip is *never* NULL - it is a structure field of ClutterStage itself. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1489 --- clutter/clutter/clutter-actor.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index ec527faa2..59b5fa207 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -3459,13 +3459,6 @@ cull_actor (ClutterActor *self, stage = (ClutterStage *) _clutter_actor_get_stage_internal (self); stage_clip = _clutter_stage_get_clip (stage); - if (G_UNLIKELY (!stage_clip)) - { - CLUTTER_NOTE (CLIPPING, "Bail from cull_actor without culling (%s): " - "No stage clip set", - _clutter_actor_get_debug_name (self)); - return FALSE; - } if (clutter_paint_context_is_drawing_off_stage (paint_context)) {