[vlmc-devel] Clip: Remove unused isChild method

Hugo Beauzée-Luyssen git at videolan.org
Fri Aug 19 02:41:43 CEST 2016


vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug 19 00:54:18 2016 +0200| [d633dcc9a80fe022d3d73ba83185376a31015711] | committer: Hugo Beauzée-Luyssen

Clip: Remove unused isChild method

> https://code.videolan.org/videolan/vlmc/commit/d633dcc9a80fe022d3d73ba83185376a31015711
---

 src/Media/Clip.cpp | 14 --------------
 src/Media/Clip.h   |  5 -----
 2 files changed, 19 deletions(-)

diff --git a/src/Media/Clip.cpp b/src/Media/Clip.cpp
index e3b0e25..3081fac 100644
--- a/src/Media/Clip.cpp
+++ b/src/Media/Clip.cpp
@@ -252,20 +252,6 @@ Clip::clear()
     m_subclips.clear();
 }
 
-bool
-Clip::isChild( const QUuid &uuid) const
-{
-    Clip*   c = m_parent;
-
-    while ( c != nullptr )
-    {
-        if ( c->m_uuid == uuid )
-            return true;
-        c = c->m_parent;
-    }
-    return false;
-}
-
 QVariant
 Clip::toVariant() const
 {
diff --git a/src/Media/Clip.h b/src/Media/Clip.h
index 2eef0e5..0e53793 100644
--- a/src/Media/Clip.h
+++ b/src/Media/Clip.h
@@ -130,11 +130,6 @@ class   Clip : public Workflow::Helper
 
         bool                addSubclip( Clip* clip );
 
-        /**
-         *  \return         true if the clip is a child of the given clip uuid
-         */
-        bool                isChild( const QUuid& uuid ) const;
-
         QVariant            toVariant() const;
         QVariant            toVariantFull() const;
 



More information about the Vlmc-devel mailing list