From d2fe222b89b71dbaaf8a7fb4213e1c729383c5c1 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Wed, 25 May 2022 16:46:00 -0700 Subject: [PATCH] refactor(core): Remove unused Core::getKeyPair --- src/core/core.cpp | 19 ------------------- src/core/core.h | 1 - 2 files changed, 20 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index fc91e2f60..17480e52c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -878,25 +878,6 @@ ToxPk Core::getSelfPublicKey() const return ToxPk(selfPk); } -/** - * @brief Returns our public and private keys - */ -QPair Core::getKeypair() const -{ - QMutexLocker ml{&coreLoopLock}; - - QPair keypair; - assert(tox != nullptr); - - QByteArray pk(TOX_PUBLIC_KEY_SIZE, 0x00); - QByteArray sk(TOX_SECRET_KEY_SIZE, 0x00); - tox_self_get_public_key(tox.get(), reinterpret_cast(pk.data())); - tox_self_get_secret_key(tox.get(), reinterpret_cast(sk.data())); - keypair.first = pk; - keypair.second = sk; - return keypair; -} - QByteArray Core::getSelfDhtId() const { QMutexLocker ml{&coreLoopLock}; diff --git a/src/core/core.h b/src/core/core.h index 9bd48c400..3918f37e3 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -109,7 +109,6 @@ public: QString getStatusMessage() const; ToxId getSelfId() const override; ToxPk getSelfPublicKey() const override; - QPair getKeypair() const; QByteArray getSelfDhtId() const; int getSelfUdpPort() const;