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
This commit is contained in:
Jonas Ådahl 2019-11-22 09:19:28 +01:00 committed by Georges Basile Stavracas Neto
parent e696f639ab
commit 8ce3b3d99e

View File

@ -3801,9 +3801,6 @@ clutter_actor_paint_node (ClutterActor *actor,
ClutterActorBox box; ClutterActorBox box;
ClutterColor bg_color; ClutterColor bg_color;
if (root == NULL)
return FALSE;
box.x1 = 0.f; box.x1 = 0.f;
box.y1 = 0.f; box.y1 = 0.f;
box.x2 = clutter_actor_box_get_width (&priv->allocation); box.x2 = clutter_actor_box_get_width (&priv->allocation);