From 907490d795f4438e631679fce47cae7fc08830d6 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sun, 31 Oct 2010 18:34:23 +0000 Subject: [PATCH] clone: Remove checks in set_source_internal() One of the ideas behind _internal() functions is to be able to have a version of the original one without checks (among other things). As these functions are either static or private to the library, we control the arguments given to it, and thus no need for checking them again here. --- clutter/clutter-clone.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/clutter/clutter-clone.c b/clutter/clutter-clone.c index 3675e2885..cb5027328 100644 --- a/clutter/clutter-clone.c +++ b/clutter/clutter-clone.c @@ -373,12 +373,7 @@ static void clutter_clone_set_source_internal (ClutterClone *clone, ClutterActor *source) { - ClutterClonePrivate *priv; - - g_return_if_fail (CLUTTER_IS_CLONE (clone)); - g_return_if_fail (source == NULL || CLUTTER_IS_ACTOR (source)); - - priv = clone->priv; + ClutterClonePrivate *priv = clone->priv; if (priv->clone_source) {