diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-24 20:51:00 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-26 10:46:34 +0200 |
commit | 388c301222586583a0144f7229a564cf07b597d4 (patch) | |
tree | 4fdefe2a2407adf7c0fe65cedc83567d3700eea5 /lib | |
parent | d5c1afc536dde87f460ccadfcfd51444b5e9bb82 (diff) | |
download | libquotient-388c301222586583a0144f7229a564cf07b597d4.tar.gz libquotient-388c301222586583a0144f7229a564cf07b597d4.zip |
Remove no-op code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/e2ee/qolmoutboundsession.cpp | 11 | ||||
-rw-r--r-- | lib/room.cpp | 1 |
2 files changed, 0 insertions, 12 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); diff --git a/lib/room.cpp b/lib/room.cpp index 5fdff036..0cf818ce 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -444,7 +444,6 @@ public: connection->saveCurrentOutboundMegolmSession( id, *currentOutboundMegolmSession); - currentOutboundMegolmSession->sessionKey(); addInboundGroupSession(currentOutboundMegolmSession->sessionId(), currentOutboundMegolmSession->sessionKey(), q->localUser()->id(), "SELF"_ls); |