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

refactor: removed unused quitGroupChat method

`removeGroup` is used instead of this method
This commit is contained in:
noavarice 2017-08-27 07:20:04 +03:00
parent b87248c36b
commit 28aed05d0a
No known key found for this signature in database
GPG Key ID: 52A50775BE13DF17
2 changed files with 0 additions and 22 deletions

View File

@ -1225,27 +1225,6 @@ uint32_t Core::joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* frie
return std::numeric_limits<uint32_t>::max();
}
/**
* @brief Quit a groupchat
*/
void Core::quitGroupChat(int groupId) const
{
TOX_ERR_CONFERENCE_DELETE error;
tox_conference_delete(tox, groupId, &error);
switch (error) {
case TOX_ERR_CONFERENCE_DELETE_OK:
return;
case TOX_ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND:
qCritical() << "Conference not found";
return;
default:
return;
}
}
void Core::groupInviteFriend(uint32_t friendId, int groupId)
{
TOX_ERR_CONFERENCE_INVITE error;

View File

@ -63,7 +63,6 @@ public:
bool isFriendOnline(uint32_t friendId) const;
bool hasFriendWithPublicKey(const ToxPk& publicKey) const;
uint32_t joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* pubkey, uint16_t length) const;
void quitGroupChat(int groupId) const;
QString getUsername() const;
Status getStatus() const;