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.
This commit is contained in:
Damien Lespiau 2010-10-31 18:34:23 +00:00
parent a318fe5ca5
commit 907490d795

View File

@ -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)
{