1
0
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:
tux3 2015-12-05 19:09:20 +01:00
parent 25ed3d4fba
commit b39f3eacb0
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 0 additions and 9 deletions

View File

@ -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;

View File

@ -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