From 9497b7e96cfac6e60a53fe05c0ca945ecc839533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 28 Feb 2016 19:01:54 +0100 Subject: NOISSUE even more version file refactors There is no end to them in sight --- logic/Json.h | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'logic/Json.h') diff --git a/logic/Json.h b/logic/Json.h index d13230b8..cb266c6e 100644 --- a/logic/Json.h +++ b/logic/Json.h @@ -48,33 +48,6 @@ MULTIMC_LOGIC_EXPORT QJsonArray requireArray(const QJsonDocument &doc, const QSt void writeString(QJsonObject & to, const QString &key, const QString &value); void writeStringList(QJsonObject & to, const QString &key, const QStringList &values); -template -void writeObjectList(QJsonObject & to, QString key, QList> values) -{ - if (!values.isEmpty()) - { - QJsonArray array; - for (auto value: values) - { - array.append(value->toJson()); - } - to.insert(key, array); - } -} -template -void writeObjectList(QJsonObject & to, QString key, QList values) -{ - if (!values.isEmpty()) - { - QJsonArray array; - for (auto value: values) - { - array.append(value.toJson()); - } - to.insert(key, array); - } -} - template QJsonValue toJson(const T &t) { -- cgit v1.2.3