Commit aeb41b57 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Library: Remove unused addClip method

parent e1e42788
...@@ -87,23 +87,6 @@ Library::addMedia( QSharedPointer<Media> media ) ...@@ -87,23 +87,6 @@ Library::addMedia( QSharedPointer<Media> media )
m_media[media->id()] = media; m_media[media->id()] = 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 bool
Library::isInCleanState() const Library::isInCleanState() const
{ {
......
...@@ -52,7 +52,6 @@ public: ...@@ -52,7 +52,6 @@ public:
Library( Settings* projectSettings ); Library( Settings* projectSettings );
virtual ~Library(); virtual ~Library();
virtual void addMedia( QSharedPointer<Media> media ); virtual void addMedia( QSharedPointer<Media> media );
virtual bool addClip( Clip *clip );
bool isInCleanState() const; bool isInCleanState() const;
QSharedPointer<Media> media( qint64 mediaId ); QSharedPointer<Media> media( qint64 mediaId );
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment