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:
parent
50bda558cd
commit
d2fe222b89
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user