From 1c14f562ad67219e26be7a5ba6d62c0bcffaf96f Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Thu, 3 Nov 2011 21:09:18 -0400 Subject: [PATCH] Remove the http iofactory. AudioEngine handles http:// urls by giving them to phonon directly. Lets not download an mp3 twice. --- src/libtomahawk/network/servent.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/libtomahawk/network/servent.cpp b/src/libtomahawk/network/servent.cpp index 3d26e6b04..881c330cf 100644 --- a/src/libtomahawk/network/servent.cpp +++ b/src/libtomahawk/network/servent.cpp @@ -80,12 +80,6 @@ Servent::Servent( QObject* parent ) boost::bind( &Servent::remoteIODeviceFactory, this, _1 ); this->registerIODeviceFactory( "servent", fac ); } - - { - boost::function(result_ptr)> fac = - boost::bind( &Servent::httpIODeviceFactory, this, _1 ); - this->registerIODeviceFactory( "http", fac ); - } } @@ -880,12 +874,3 @@ Servent::localFileIODeviceFactory( const Tomahawk::result_ptr& result ) return QSharedPointer( io ); } - - -QSharedPointer -Servent::httpIODeviceFactory( const Tomahawk::result_ptr& result ) -{ - QNetworkRequest req( result->url() ); - QNetworkReply* reply = TomahawkUtils::nam()->get( req ); - return QSharedPointer( reply, &QObject::deleteLater ); -}