[mutter/gbsneto/graphene-frustrum: 2/13] clutter/actor: Remove unnecessary check




commit 3247e989d360c6e51105fe5f423e0ceb0148b18c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Oct 9 16:32:57 2020 -0300

    clutter/actor: Remove unnecessary check
    
    The stage clip is *never* NULL - it is a structure field of ClutterStage
    itself.

 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 ecae675564..4ea954441c 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -3457,13 +3457,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))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]