1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 07:19:42 +01:00

Disable unreachable code path in servent which depends on QtGui

This commit is contained in:
Dominik Schmidt 2011-11-28 03:31:42 +01:00
parent 956243e570
commit 0a46febf36

View File

@ -27,11 +27,6 @@
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>
#ifndef ENABLE_HEADLESS
#include <QtGui/QPushButton>
#include <QtGui/QMessageBox>
#endif
#include "result.h"
#include "source.h"
#include "bufferiodevice.h"
@ -703,8 +698,9 @@ Servent::checkACL( const Connection* conn, const QString &nodeid, bool showDialo
if( peerStatus == ACLSystem::Deny )
return false;
#ifndef ENABLE_HEADLESS
//FIXME: Actually enable it when it makes sense
//FIXME: needs refactoring because it depends on QtGui and the servent is part of libtomahawk-core
/*
return true;
if( peerStatus == ACLSystem::NotFound )
{
@ -744,7 +740,7 @@ Servent::checkACL( const Connection* conn, const QString &nodeid, bool showDialo
Q_ASSERT( false );
return false;
}
#endif
*/
return true;
}