aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/push_rule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/push_rule.cpp')
-rw-r--r--lib/csapi/definitions/push_rule.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/csapi/definitions/push_rule.cpp b/lib/csapi/definitions/push_rule.cpp
index 1ee57945..833135ec 100644
--- a/lib/csapi/definitions/push_rule.cpp
+++ b/lib/csapi/definitions/push_rule.cpp
@@ -6,24 +6,6 @@
using namespace QMatrixClient;
-QJsonObject QMatrixClient::toJson(const SetTweakAction& pod)
-{
- QJsonObject _json = toJson(pod.additionalProperties);
- addParam<>(_json, QStringLiteral("set_tweak"), pod.setTweak);
- return _json;
-}
-
-SetTweakAction FromJson<SetTweakAction>::operator()(const QJsonValue& jv)
-{
- auto _json = jv.toObject();
- SetTweakAction result;
- result.setTweak =
- fromJson<QString>(_json.take("set_tweak"_ls));
-
- result.additionalProperties = fromJson<QVariantHash>(_json);
- return result;
-}
-
QJsonObject QMatrixClient::toJson(const PushRule& pod)
{
QJsonObject _json;