diff options
Diffstat (limited to 'platform/qt/src/http_file_source.cpp')
-rw-r--r-- | platform/qt/src/http_file_source.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/platform/qt/src/http_file_source.cpp b/platform/qt/src/http_file_source.cpp index b95cfed0e9..90abdd0aa3 100644 --- a/platform/qt/src/http_file_source.cpp +++ b/platform/qt/src/http_file_source.cpp @@ -29,9 +29,7 @@ void HTTPFileSource::Impl::request(HTTPRequest* req) } QNetworkRequest networkRequest = req->networkRequest(); -#if QT_VERSION >= 0x050600 networkRequest.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); -#endif data.first = m_manager->get(networkRequest); connect(data.first, SIGNAL(finished()), this, SLOT(onReplyFinished())); @@ -60,15 +58,7 @@ void HTTPFileSource::Impl::cancel(HTTPRequest* req) if (requestsVector.empty()) { m_pending.erase(it); -#if QT_VERSION >= 0x050000 reply->abort(); -#else - // XXX: We should be aborting the reply here - // but a bug on Qt4 causes the connection of - // other ongoing requests to drop if we call - // abort() too often (and we do). - Q_UNUSED(reply); -#endif } } @@ -105,11 +95,7 @@ std::unique_ptr<AsyncRequest> HTTPFileSource::request(const Resource& resource, } uint32_t HTTPFileSource::maximumConcurrentRequests() { -#if QT_VERSION >= 0x050000 return 20; -#else - return 10; -#endif } } // namespace mbgl |