mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Clean unused getIDString() function
This commit is contained in:
parent
25ed3d4fba
commit
b39f3eacb0
|
@ -785,13 +785,6 @@ ToxId Core::getSelfId() const
|
||||||
return ToxId(CFriendAddress::toString(friendAddress));
|
return ToxId(CFriendAddress::toString(friendAddress));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Core::getIDString() const
|
|
||||||
{
|
|
||||||
return getSelfId().toString().left(12);
|
|
||||||
// 12 is the smallest multiple of four such that
|
|
||||||
// 16^n > 10^10 (which is roughly the planet's population)
|
|
||||||
}
|
|
||||||
|
|
||||||
QPair<QByteArray, QByteArray> Core::getKeypair() const
|
QPair<QByteArray, QByteArray> Core::getKeypair() const
|
||||||
{
|
{
|
||||||
QPair<QByteArray, QByteArray> keypair;
|
QPair<QByteArray, QByteArray> keypair;
|
||||||
|
|
|
@ -72,8 +72,6 @@ public:
|
||||||
int joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* pubkey,uint16_t length) const; ///< Accept a groupchat invite
|
int joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* pubkey,uint16_t length) const; ///< Accept a groupchat invite
|
||||||
void quitGroupChat(int groupId) const; ///< Quit a groupchat
|
void quitGroupChat(int groupId) const; ///< Quit a groupchat
|
||||||
|
|
||||||
QString getIDString() const; ///< Get the 12 first characters of our Tox ID
|
|
||||||
|
|
||||||
QString getUsername() const; ///< Returns our username, or an empty string on failure
|
QString getUsername() const; ///< Returns our username, or an empty string on failure
|
||||||
Status getStatus() const; ///< Returns our user status
|
Status getStatus() const; ///< Returns our user status
|
||||||
QString getStatusMessage() const; ///< Returns our status message, or an empty string on failure
|
QString getStatusMessage() const; ///< Returns our status message, or an empty string on failure
|
||||||
|
|
Loading…
Reference in New Issue
Block a user