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;