[vlmc-devel] Library: Remove unused addClip method

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


vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug 19 02:09:39 2016 +0200| [f1fe7645c662a89c161af51241206f23ee075a15] | committer: Hugo Beauzée-Luyssen

Library: Remove unused addClip method

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

 src/Library/Library.cpp | 17 -----------------
 src/Library/Library.h   |  1 -
 2 files changed, 18 deletions(-)

diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index 27bfa00..91d400a 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -88,23 +88,6 @@ Library::addMedia( QSharedPointer<Media> media )
 }
 
 bool
-Library::addClip( Clip *clip )
-{
-    foreach ( Clip* c, m_clips.values() )
-    {
-        if ( clip->uuid() == c->uuid() ||
-             ( clip->media()->mrl() == c->media()->mrl() &&
-                    ( clip->begin() == c->begin() && clip->end() == c->end() ) ) )
-        {
-            vlmcWarning() << "Clip already loaded.";
-            return false;
-        }
-    }
-    setCleanState( false );
-    return true;
-}
-
-bool
 Library::isInCleanState() const
 {
     return m_cleanState;
diff --git a/src/Library/Library.h b/src/Library/Library.h
index 4d170d2..a97e426 100644
--- a/src/Library/Library.h
+++ b/src/Library/Library.h
@@ -52,7 +52,6 @@ public:
     Library( Settings* projectSettings );
     virtual ~Library();
     virtual void    addMedia( QSharedPointer<Media> media );
-    virtual bool    addClip( Clip *clip );
     bool            isInCleanState() const;
     QSharedPointer<Media> media( qint64 mediaId );
     /**



More information about the Vlmc-devel mailing list