From 8ce3b3d99e4718b7f02ec5bdbdc70846cb35353c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 22 Nov 2019 09:19:28 +0100 Subject: [PATCH] clutter/actor: Remove unnecessary NULL check from paint_node() The function is static, only has one caller, that always passes a non-NULL pointer, so the NULL check just adds confusion. https://gitlab.gnome.org/GNOME/mutter/merge_requests/935 --- clutter/clutter/clutter-actor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index 5e844eb79..991075e02 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -3801,9 +3801,6 @@ clutter_actor_paint_node (ClutterActor *actor, ClutterActorBox box; ClutterColor bg_color; - if (root == NULL) - return FALSE; - box.x1 = 0.f; box.y1 = 0.f; box.x2 = clutter_actor_box_get_width (&priv->allocation);