aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmoutboundsession.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-24 20:51:00 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-26 10:46:34 +0200
commit388c301222586583a0144f7229a564cf07b597d4 (patch)
tree4fdefe2a2407adf7c0fe65cedc83567d3700eea5 /lib/e2ee/qolmoutboundsession.cpp
parentd5c1afc536dde87f460ccadfcfd51444b5e9bb82 (diff)
downloadlibquotient-388c301222586583a0144f7229a564cf07b597d4.tar.gz
libquotient-388c301222586583a0144f7229a564cf07b597d4.zip
Remove no-op code
Diffstat (limited to 'lib/e2ee/qolmoutboundsession.cpp')
-rw-r--r--lib/e2ee/qolmoutboundsession.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/e2ee/qolmoutboundsession.cpp b/lib/e2ee/qolmoutboundsession.cpp
index 56f78906..1176d790 100644
--- a/lib/e2ee/qolmoutboundsession.cpp
+++ b/lib/e2ee/qolmoutboundsession.cpp
@@ -45,12 +45,6 @@ QOlmOutboundGroupSessionPtr QOlmOutboundGroupSession::create()
olmOutboundGroupSession));
}
- // FIXME: is it used anywhere?
- const auto keyMaxLength = olm_outbound_group_session_key_length(olmOutboundGroupSession);
- QByteArray keyBuffer(keyMaxLength, '\0');
- olm_outbound_group_session_key(olmOutboundGroupSession, reinterpret_cast<uint8_t *>(keyBuffer.data()),
- keyMaxLength);
-
return std::make_unique<QOlmOutboundGroupSession>(olmOutboundGroupSession);
}
@@ -85,11 +79,6 @@ QOlmExpected<QOlmOutboundGroupSessionPtr> QOlmOutboundGroupSession::unpickle(
return olm_outbound_group_session_last_error_code(
olmOutboundGroupSession);
}
- const auto idMaxLength = olm_outbound_group_session_id_length(olmOutboundGroupSession);
- QByteArray idBuffer(idMaxLength, '\0');
- olm_outbound_group_session_id(olmOutboundGroupSession, reinterpret_cast<uint8_t *>(idBuffer.data()),
- idBuffer.length());
- // FIXME: idBuffer doesn't seem to be used, is it needed here?
key.clear();
return std::make_unique<QOlmOutboundGroupSession>(olmOutboundGroupSession);