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

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()
return m_nav->getCurrentViewController();
}
void MediaLibraryWidget::clipAdded( Clip* clip )
{
Library::getInstance()->addClip( clip );
emit addClipToViewController( clip );
}
void MediaLibraryWidget::mediaSelection( Media* media )
{
emit mediaSelected( media );
......
......@@ -43,8 +43,6 @@ public:
private:
StackViewController* m_nav;
public slots:
void clipAdded( Clip* clip );
private slots:
void mediaSelection( Media* media );
void clipSelection( Clip* clip );
......
......@@ -127,13 +127,6 @@ Library::addMedia( Media *media )
emit newMediaLoaded( media );
}
void
Library::addClip( Clip* clip )
{
Media* media = m_medias[clip->getParent()->uuid()];
media->addClip( clip );
}
bool
Library::mediaAlreadyLoaded( const QFileInfo& fileInfo )
{
......
......@@ -94,14 +94,6 @@ public:
*/
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.
*
......
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