From d46efecf2b6a1913e31726a41d6c77e4528ecb0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 25 Jun 2015 10:25:48 +0200 Subject: [PATCH] nle: Remove unused function nle/nlecomposition.c:2471:1: error: unused function '_parent_or_priority_changed' [-Werror,-Wunused-function] _parent_or_priority_changed (NleObject * obj, GNode * oldnode, ^ --- ges/nle/nlecomposition.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/ges/nle/nlecomposition.c b/ges/nle/nlecomposition.c index c88a721..9f66f51 100644 --- a/ges/nle/nlecomposition.c +++ b/ges/nle/nlecomposition.c @@ -2467,25 +2467,6 @@ update_start_stop_duration (NleComposition * comp) GST_TIME_ARGS (cobj->stop), GST_TIME_ARGS (cobj->duration)); } -static inline gboolean -_parent_or_priority_changed (NleObject * obj, GNode * oldnode, - NleObject * newparent, GNode * node) -{ - NleObject *oldparent = NULL; - - if (oldnode) - oldparent = - G_NODE_IS_ROOT (oldnode) ? NULL : (NleObject *) oldnode->parent->data; - - if (oldparent != newparent) - return TRUE; - - if (oldparent == NULL || newparent == NULL) - return FALSE; - - return (g_node_child_index (node, obj) != g_node_child_index (oldnode, obj)); -} - static void _link_to_parent (NleComposition * comp, NleObject * newobj, NleObject * newparent) -- 2.7.4