[mutter] clutter/actor: Remove unnecessary NULL check from paint_node()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/actor: Remove unnecessary NULL check from paint_node()
- Date: Tue, 3 Dec 2019 19:14:13 +0000 (UTC)
commit 8ce3b3d99e4718b7f02ec5bdbdc70846cb35353c
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Nov 22 09:19:28 2019 +0100
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]