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 #include -#include #include -#include -#include -#include #include #include #include -#include -#include #include #include @@ -196,10 +190,6 @@ private: void getProfileInfo(); void getBackupVersion(); - using UserID = QString; - using Membership = mtx::events::StateEvent; - using Memberships = std::map; - void loadStateFromCache(); void resetUI(); @@ -210,9 +200,6 @@ private: // we aren't looking bool shouldThrottleSync() const; - template - Memberships getMemberships(const std::vector &events) const; - template void connectCallMessage(); @@ -235,19 +222,3 @@ private: QDateTime lastWindowActive; }; -template -std::map> -ChatPage::getMemberships(const std::vector &collection) const -{ - std::map> memberships; - - using Member = mtx::events::StateEvent; - - for (const auto &event : collection) { - if (auto member = std::get_if(event)) { - memberships.emplace(member->state_key, *member); - } - } - - return memberships; -}