summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-06-19 12:07:37 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-06-19 12:27:29 +0000
commit9a045007fc6946b838a6ceb38b5ba98b11680b68 (patch)
tree42451e111ec2a183783a3368b33d917b69b5ce67
parent1df057883cda44590ed2b21326c30f83def8f7e6 (diff)
Remove dead code
Remove leftovers from a previous implementation. It removes an unnecessary loop during OAuth1 request setup step. Change-Id: I7f4a3cd5466b9eb8ff2344761069dd37a157dad0 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/oauth/qoauth1.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/oauth/qoauth1.cpp b/src/oauth/qoauth1.cpp
index 56cdb8f..667f8ea 100644
--- a/src/oauth/qoauth1.cpp
+++ b/src/oauth/qoauth1.cpp
@@ -474,13 +474,6 @@ void QOAuth1::setup(QNetworkRequest *request,
Q_D(const QOAuth1);
QVariantMap oauthParams;
- QVariantMap otherParams = signingParameters;
- // Adding parameters located in the query
- {
- auto queryItems = QUrlQuery(request->url().query()).queryItems();
- for (auto it = queryItems.begin(), end = queryItems.end(); it != end; ++it)
- otherParams.insert(it->first, it->second);
- }
const auto currentDateTime = QDateTime::currentDateTimeUtc();