From afaf8a1650d405c2e099178ccc61ec8d12a154e9 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 12 Mar 2015 14:59:43 +0100 Subject: Remove #ifndef QT_NO_HTTP that does nothing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9d6771e9da64e59f8a038dd3b506e6293fcb62c0 Reviewed-by: Jan Kundrát Reviewed-by: Shawn Rutledge Reviewed-by: Richard J. Moore --- src/network/access/qnetworkreplyimpl.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/network/access/qnetworkreplyimpl.cpp') diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index 5af3bb37be..3f096cd3ee 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -402,19 +402,11 @@ void QNetworkReplyImplPrivate::setup(QNetworkAccessManager::Operation op, const } else { // for HTTP, we want to send out the request as fast as possible to the network, without // invoking methods in a QueuedConnection -#ifndef QT_NO_HTTP - if (backend && backend->isSynchronous()) { - _q_startOperation(); - } else { - QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection); - } -#else if (backend && backend->isSynchronous()) _q_startOperation(); else QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection); -#endif // QT_NO_HTTP - } + } } void QNetworkReplyImplPrivate::backendNotify(InternalNotifications notification) @@ -1113,11 +1105,7 @@ bool QNetworkReplyImplPrivate::migrateBackend() backend->setResumeOffset(bytesDownloaded); } -#ifndef QT_NO_HTTP - QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection); -#else QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection); -#endif // QT_NO_HTTP return true; } -- cgit v1.2.3