diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 5ee7fd91f..bde7e14a6 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -21,7 +21,6 @@ set( libSources artist.cpp album.cpp collection.cpp - webcollection.cpp playlist.cpp resolver.cpp query.cpp @@ -201,7 +200,6 @@ set( libHeaders aclsystem.h collection.h - webcollection.h query.h resolver.h result.h diff --git a/src/libtomahawk/webcollection.cpp b/src/libtomahawk/webcollection.cpp deleted file mode 100644 index 80a8785de..000000000 --- a/src/libtomahawk/webcollection.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright (C) 2011 Leo Franchi - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -*/ - - -#include "webcollection.h" - -using namespace Tomahawk; - -WebCollection::WebCollection( const source_ptr& source, const QString& name, QObject* parent ) - : Collection( source, name, parent ) -{ - -} - -WebCollection::~WebCollection() -{ -} diff --git a/src/libtomahawk/webcollection.h b/src/libtomahawk/webcollection.h deleted file mode 100644 index ba016f023..000000000 --- a/src/libtomahawk/webcollection.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - Copyright (C) 2011 Leo Franchi - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -*/ - - -#ifndef WEBCOLLECTION_H -#define WEBCOLLECTION_H - -#include "collection.h" -#include "dllmacro.h" - -namespace Tomahawk -{ - -class DLLEXPORT WebCollection : public Collection -{ - Q_OBJECT -public: - WebCollection( const source_ptr& source, const QString& name = QString(), QObject* parent = 0 ); - virtual ~WebCollection(); - - virtual void removeTracks( const QDir& ) {} - virtual void addTracks( const QList< QVariant >& ) {} -}; - - -} - -#endif // WEBCOLLECTION_H diff --git a/src/tomahawkapp.cpp b/src/tomahawkapp.cpp index 55be072b4..bd841c2dc 100644 --- a/src/tomahawkapp.cpp +++ b/src/tomahawkapp.cpp @@ -51,7 +51,6 @@ #include "scanmanager.h" #include "tomahawksettings.h" #include "globalactionmanager.h" -#include "webcollection.h" #include "database/localcollection.h" #include "musicscanner.h" @@ -482,13 +481,6 @@ TomahawkApp::initLocalCollection() src->addCollection( coll ); SourceList::instance()->setLocal( src ); - - // dummy source/collection for web-based result-hints. -/* source_ptr dummy( new Source( -1, "" ) ); - dummy->setOnline(); - collection_ptr dummycol( new WebCollection( dummy ) ); - dummy->addCollection( dummycol ); - SourceList::instance()->setWebSource( dummy );*/ SourceList::instance()->loadSources(); // to make the stats signal be emitted by our local source