[vlmc-devel] Clip: Remove fullId

Yikai Lu git at videolan.org
Sat Apr 9 22:18:14 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Apr  9 11:44:12 2016 +0900| [0b324f8105cb63f0b177c283b422b24df7d82ff9] | committer: Hugo Beauzée-Luyssen

Clip: Remove fullId

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/0b324f8105cb63f0b177c283b422b24df7d82ff9
---

 src/Media/Clip.cpp | 13 -------------
 src/Media/Clip.h   |  9 ---------
 2 files changed, 22 deletions(-)

diff --git a/src/Media/Clip.cpp b/src/Media/Clip.cpp
index fe85c3e..3750466 100644
--- a/src/Media/Clip.cpp
+++ b/src/Media/Clip.cpp
@@ -218,19 +218,6 @@ Clip::clear()
     m_childs->clear();
 }
 
-QString
-Clip::fullId() const
-{
-    const Clip* c = this;
-    QString     id = m_uuid.toString();
-    while ( c->isRootClip() == false )
-    {
-        c = c->getParent();
-        id = c->uuid().toString() + '/' + id;
-    }
-    return id;
-}
-
 bool
 Clip::isChild( const QUuid &uuid) const
 {
diff --git a/src/Media/Clip.h b/src/Media/Clip.h
index ec63682..ce635af 100644
--- a/src/Media/Clip.h
+++ b/src/Media/Clip.h
@@ -130,15 +130,6 @@ class   Clip : public QObject
         bool                addSubclip( Clip* clip );
 
         /**
-         *  \brief          Generates a full Clip id
-         *
-         *  A full id is the list of all the parent Clip's UUID, separated by '/'
-         *  IE, {uuid1}/{uuid2}/{uuid2}/{current-clip-uuid}
-         *  \return     The full Clip id.
-         */
-        QString             fullId() const;
-
-        /**
          *  \return         true if the clip is a child of the given clip uuid
          */
         bool                isChild( const QUuid& uuid ) const;



More information about the Vlmc-devel mailing list