mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Remove unused code.
This commit is contained in:
@@ -417,8 +417,6 @@ ScriptResolver::doSetup( const QVariantMap& m )
|
|||||||
m_configSent = false;
|
m_configSent = false;
|
||||||
m_num_restarts = 0;
|
m_num_restarts = 0;
|
||||||
|
|
||||||
loadCollections();
|
|
||||||
|
|
||||||
if ( !m_stopped )
|
if ( !m_stopped )
|
||||||
Tomahawk::Pipeline::instance()->addResolver( this );
|
Tomahawk::Pipeline::instance()->addResolver( this );
|
||||||
|
|
||||||
@@ -446,22 +444,6 @@ ScriptResolver::setupConfWidget( const QVariantMap& m )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
ScriptResolver::loadCollections()
|
|
||||||
{
|
|
||||||
if ( m_capabilities.testFlag( Browsable ) )
|
|
||||||
{
|
|
||||||
m_collections.clear();
|
|
||||||
// at this point we assume that all the tracks browsable through a resolver belong to the local source
|
|
||||||
Tomahawk::collection_ptr collection( new Tomahawk::ScriptCollection( SourceList::instance()->getLocal(), this ) );
|
|
||||||
m_collections.insert( collection->name(), collection );
|
|
||||||
emit collectionAdded( collection );
|
|
||||||
|
|
||||||
//TODO: implement multiple collections from a resolver
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ScriptResolver::startProcess()
|
ScriptResolver::startProcess()
|
||||||
{
|
{
|
||||||
|
@@ -88,7 +88,6 @@ private:
|
|||||||
void sendMsg( const QByteArray& msg );
|
void sendMsg( const QByteArray& msg );
|
||||||
void doSetup( const QVariantMap& m );
|
void doSetup( const QVariantMap& m );
|
||||||
void setupConfWidget( const QVariantMap& m );
|
void setupConfWidget( const QVariantMap& m );
|
||||||
void loadCollections();
|
|
||||||
|
|
||||||
void startProcess();
|
void startProcess();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user