diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-01 16:39:47 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-01 16:39:47 +0100 |
commit | c2d50d52a4ca87a2236037e9ea627d5ea45d0298 (patch) | |
tree | 54403a5cc540d4c21fb19c689bebcb617aad8b10 | |
parent | Throttle sync processing if the window is unfocused for a while (diff) | |
download | nheko-c2d50d52a4ca87a2236037e9ea627d5ea45d0298.tar.xz |
Remove unused function
-rw-r--r-- | src/ChatPage.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h index 910ccd1e..8229e022 100644 --- a/src/ChatPage.h +++ b/src/ChatPage.h @@ -7,17 +7,11 @@ #include <atomic> #include <optional> -#include <mtx/common.hpp> #include <mtx/events.hpp> -#include <mtx/events/encrypted.hpp> -#include <mtx/events/member.hpp> -#include <mtx/events/policy_rules.hpp> #include <mtx/events/presence.hpp> #include <mtx/secret_storage.hpp> #include <QDateTime> -#include <QMap> -#include <QPoint> #include <QSharedPointer> #include <QTimer> @@ -196,10 +190,6 @@ private: void getProfileInfo(); void getBackupVersion(); - using UserID = QString; - using Membership = mtx::events::StateEvent<mtx::events::state::Member>; - using Memberships = std::map<std::string, Membership>; - void loadStateFromCache(); void resetUI(); @@ -210,9 +200,6 @@ private: // we aren't looking bool shouldThrottleSync() const; - template<class Collection> - Memberships getMemberships(const std::vector<Collection> &events) const; - template<typename T> void connectCallMessage(); @@ -235,19 +222,3 @@ private: QDateTime lastWindowActive; }; -template<class Collection> -std::map<std::string, mtx::events::StateEvent<mtx::events::state::Member>> -ChatPage::getMemberships(const std::vector<Collection> &collection) const -{ - std::map<std::string, mtx::events::StateEvent<mtx::events::state::Member>> memberships; - - using Member = mtx::events::StateEvent<mtx::events::state::Member>; - - for (const auto &event : collection) { - if (auto member = std::get_if<Member>(event)) { - memberships.emplace(member->state_key, *member); - } - } - - return memberships; -} |