1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(core): Remove unused Core::getKeyPair

This commit is contained in:
Anthony Bilinski 2022-05-25 16:46:00 -07:00
parent 50bda558cd
commit d2fe222b89
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 0 additions and 20 deletions

View File

@ -878,25 +878,6 @@ ToxPk Core::getSelfPublicKey() const
return ToxPk(selfPk);
}
/**
* @brief Returns our public and private keys
*/
QPair<QByteArray, QByteArray> Core::getKeypair() const
{
QMutexLocker ml{&coreLoopLock};
QPair<QByteArray, QByteArray> 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<uint8_t*>(pk.data()));
tox_self_get_secret_key(tox.get(), reinterpret_cast<uint8_t*>(sk.data()));
keypair.first = pk;
keypair.second = sk;
return keypair;
}
QByteArray Core::getSelfDhtId() const
{
QMutexLocker ml{&coreLoopLock};

View File

@ -109,7 +109,6 @@ public:
QString getStatusMessage() const;
ToxId getSelfId() const override;
ToxPk getSelfPublicKey() const override;
QPair<QByteArray, QByteArray> getKeypair() const;
QByteArray getSelfDhtId() const;
int getSelfUdpPort() const;