From 2e8528bb40313f40c879bfab9cb0dd2e406cfa47 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 27 Aug 2019 13:52:52 +1000 Subject: [PATCH] ges/timeline: remove unused function get_toplevel_container Fixes -Werror build with clang: ../subprojects/gst-editing-services/ges/ges-timeline.c:695:1: warning: unused function 'get_toplevel_container' [-Wunused-function] get_toplevel_container (gpointer element) ^ --- ges/ges-timeline.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 8b838d960f..b8d1057a73 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -691,18 +691,6 @@ ges_timeline_init (GESTimeline * self) /* Private methods */ -static inline GESContainer * -get_toplevel_container (gpointer element) -{ - GESTimelineElement *ret = - ges_timeline_element_get_toplevel_parent ((GESTimelineElement - *) (element)); - - /* We own a ref to the elements ourself */ - gst_object_unref (ret); - return (GESContainer *) ret; -} - /* Sorting utils*/ static gint sort_layers (gpointer a, gpointer b)