From 28aed05d0aed5e0fd01cd22cbbf4d2f940c4a76e Mon Sep 17 00:00:00 2001 From: noavarice Date: Sun, 27 Aug 2017 07:20:04 +0300 Subject: [PATCH] refactor: removed unused quitGroupChat method `removeGroup` is used instead of this method --- src/core/core.cpp | 21 --------------------- src/core/core.h | 1 - 2 files changed, 22 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 8e29ca7f0..9b637d4d5 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -1225,27 +1225,6 @@ uint32_t Core::joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* frie return std::numeric_limits::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; diff --git a/src/core/core.h b/src/core/core.h index 9159976f8..ec71bb1be 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -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;