mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
e696f639ab
commit
8ce3b3d99e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user