diff --git a/src/core/core.cpp b/src/core/core.cpp index 4c53dbcb5..83708c351 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -785,13 +785,6 @@ ToxId Core::getSelfId() const 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 Core::getKeypair() const { QPair keypair; diff --git a/src/core/core.h b/src/core/core.h index 388ef3946..8f5b0cba7 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -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 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 Status getStatus() const; ///< Returns our user status QString getStatusMessage() const; ///< Returns our status message, or an empty string on failure