mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Disable unreachable code path in servent which depends on QtGui
This commit is contained in:
@@ -27,11 +27,6 @@
|
|||||||
#include <QtNetwork/QNetworkRequest>
|
#include <QtNetwork/QNetworkRequest>
|
||||||
#include <QtNetwork/QNetworkReply>
|
#include <QtNetwork/QNetworkReply>
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
#include <QtGui/QPushButton>
|
|
||||||
#include <QtGui/QMessageBox>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "result.h"
|
#include "result.h"
|
||||||
#include "source.h"
|
#include "source.h"
|
||||||
#include "bufferiodevice.h"
|
#include "bufferiodevice.h"
|
||||||
@@ -703,8 +698,9 @@ Servent::checkACL( const Connection* conn, const QString &nodeid, bool showDialo
|
|||||||
if( peerStatus == ACLSystem::Deny )
|
if( peerStatus == ACLSystem::Deny )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
//FIXME: Actually enable it when it makes sense
|
//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;
|
return true;
|
||||||
if( peerStatus == ACLSystem::NotFound )
|
if( peerStatus == ACLSystem::NotFound )
|
||||||
{
|
{
|
||||||
@@ -744,7 +740,7 @@ Servent::checkACL( const Connection* conn, const QString &nodeid, bool showDialo
|
|||||||
Q_ASSERT( false );
|
Q_ASSERT( false );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
*/
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user