aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-02 10:35:45 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-02 10:35:45 +0200
commit74dda96855b6245b09a8f7eb0512b4457b18a6b7 (patch)
treee1a058152d433f9f7a3e31d545470b873bb8cb3b /lib/jobs/basejob.h
parent7aa6e7c300779f652558397bcb7bb3b726d30cb9 (diff)
downloadlibquotient-74dda96855b6245b09a8f7eb0512b4457b18a6b7.tar.gz
libquotient-74dda96855b6245b09a8f7eb0512b4457b18a6b7.zip
Actually delete BaseJob::Query
It was a tiny wrapper around QUrlQuery to facilitate creation from an initializer list - however, Mustache templates long changed to not actually used that additional constructor.
Diffstat (limited to 'lib/jobs/basejob.h')
-rw-r--r--lib/jobs/basejob.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index ca91a781..d33d542e 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -72,20 +72,6 @@ public:
};
Q_ENUM(StatusCode)
- /**
- * A simple wrapper around QUrlQuery that allows its creation from
- * a list of string pairs
- */
- class Query : public QUrlQuery {
- public:
- using QUrlQuery::QUrlQuery;
- Query() = default;
- Query(const std::initializer_list<QPair<QString, QString>>& l)
- {
- setQueryItems(l);
- }
- };
-
using Data = RequestData;
/*!
@@ -139,7 +125,7 @@ public:
BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
bool needsToken = true);
BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
- const Query& query, Data&& data = {}, bool needsToken = true);
+ const QUrlQuery& query, Data&& data = {}, bool needsToken = true);
QUrl requestUrl() const;
bool isBackground() const;