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

Library: Remove unused addClip method

parent e1e42788
......@@ -87,23 +87,6 @@ Library::addMedia( QSharedPointer<Media> 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
Library::isInCleanState() const
{
......
......@@ -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 );
/**
......
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