From 5af76cb4bedaea85bf8e2a8538fabe4e47d40e1a Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 25 Dec 2021 16:56:17 +0100 Subject: Remove unneeded code --- lib/converters.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib') diff --git a/lib/converters.cpp b/lib/converters.cpp index 6cbb554d..b80f5985 100644 --- a/lib/converters.cpp +++ b/lib/converters.cpp @@ -8,21 +8,11 @@ QJsonValue Quotient::JsonConverter::dump(const QVariant& v) { - if (v.canConvert()) { - return toJson(v.value()); - } return QJsonValue::fromVariant(v); } QVariant Quotient::JsonConverter::load(const QJsonValue& jv) { - if (jv.isObject()) { - const QJsonObject obj = jv.toObject(); - if (obj.contains(QLatin1String("key")) && obj.contains(QLatin1String("signatures"))) { - SignedOneTimeKey signedOneTimeKeys; - signedOneTimeKeys.key = obj[QLatin1String("key")].toString(); - } - } return jv.toVariant(); } -- cgit v1.2.3