From e0058925349046e315e45e14747879e05bdab262 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 11 Oct 2010 13:32:26 +0100 Subject: [PATCH] clone: Remove unnecessary G_UNLIKELY macros A Clone:source property might be NULL, and we should not penalize performance when we can just bail out early, because that would kind of defeat the point. --- clutter/clutter-clone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-clone.c b/clutter/clutter-clone.c index f84c9dec7..9ebc3c3eb 100644 --- a/clutter/clutter-clone.c +++ b/clutter/clutter-clone.c @@ -155,7 +155,7 @@ clutter_clone_paint (ClutterActor *self) ClutterClonePrivate *priv = clone->priv; gboolean was_unmapped = FALSE; - if (G_UNLIKELY (priv->clone_source == NULL)) + if (priv->clone_source == NULL) return; CLUTTER_NOTE (PAINT, @@ -218,7 +218,7 @@ clutter_clone_allocate (ClutterActor *self, parent_class = CLUTTER_ACTOR_CLASS (clutter_clone_parent_class); parent_class->allocate (self, box, flags); - if (G_UNLIKELY (priv->clone_source == NULL)) + if (priv->clone_source == NULL) return; /* we act like a "foster parent" for the source we are cloning;