Commit 2846e21d authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Library: Removing addClip method, as it doesn't add a clip at all.

This was just some kind of wrapper to the Media::addClip method
parent 2abdee69
...@@ -54,12 +54,6 @@ const ViewController* MediaLibraryWidget::getCurrentViewController() ...@@ -54,12 +54,6 @@ const ViewController* MediaLibraryWidget::getCurrentViewController()
return m_nav->getCurrentViewController(); return m_nav->getCurrentViewController();
} }
void MediaLibraryWidget::clipAdded( Clip* clip )
{
Library::getInstance()->addClip( clip );
emit addClipToViewController( clip );
}
void MediaLibraryWidget::mediaSelection( Media* media ) void MediaLibraryWidget::mediaSelection( Media* media )
{ {
emit mediaSelected( media ); emit mediaSelected( media );
......
...@@ -43,8 +43,6 @@ public: ...@@ -43,8 +43,6 @@ public:
private: private:
StackViewController* m_nav; StackViewController* m_nav;
public slots:
void clipAdded( Clip* clip );
private slots: private slots:
void mediaSelection( Media* media ); void mediaSelection( Media* media );
void clipSelection( Clip* clip ); void clipSelection( Clip* clip );
......
...@@ -127,13 +127,6 @@ Library::addMedia( Media *media ) ...@@ -127,13 +127,6 @@ Library::addMedia( Media *media )
emit newMediaLoaded( media ); emit newMediaLoaded( media );
} }
void
Library::addClip( Clip* clip )
{
Media* media = m_medias[clip->getParent()->uuid()];
media->addClip( clip );
}
bool bool
Library::mediaAlreadyLoaded( const QFileInfo& fileInfo ) Library::mediaAlreadyLoaded( const QFileInfo& fileInfo )
{ {
......
...@@ -94,14 +94,6 @@ public: ...@@ -94,14 +94,6 @@ public:
*/ */
bool addMedia( const QFileInfo& fileInfo, const QString& uuid = QString() ); bool addMedia( const QFileInfo& fileInfo, const QString& uuid = QString() );
/**
* \brief Add the clip to the library
* \param clip The clip to add.
* \sa addMedia( Media* media )
* \sa media( const QUuid& uuid)
* \sa clip( const QUuid& uuid )
*/
void addClip( Clip* clip );
/** /**
* \brief Add an already preparsed media. * \brief Add an already preparsed media.
* *
......
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