From 0a46febf3623d9afe09d8cf8825266421a0ebb04 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt <dev@dominik-schmidt.de> Date: Mon, 28 Nov 2011 03:31:42 +0100 Subject: [PATCH] Disable unreachable code path in servent which depends on QtGui --- src/libtomahawk/network/servent.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/libtomahawk/network/servent.cpp b/src/libtomahawk/network/servent.cpp index db5453270..5af4e5bc2 100644 --- a/src/libtomahawk/network/servent.cpp +++ b/src/libtomahawk/network/servent.cpp @@ -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; }