mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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:
parent
a318fe5ca5
commit
907490d795
@ -373,12 +373,7 @@ static void
|
|||||||
clutter_clone_set_source_internal (ClutterClone *clone,
|
clutter_clone_set_source_internal (ClutterClone *clone,
|
||||||
ClutterActor *source)
|
ClutterActor *source)
|
||||||
{
|
{
|
||||||
ClutterClonePrivate *priv;
|
ClutterClonePrivate *priv = clone->priv;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_CLONE (clone));
|
|
||||||
g_return_if_fail (source == NULL || CLUTTER_IS_ACTOR (source));
|
|
||||||
|
|
||||||
priv = clone->priv;
|
|
||||||
|
|
||||||
if (priv->clone_source)
|
if (priv->clone_source)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user