From c2d50d52a4ca87a2236037e9ea627d5ea45d0298 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 1 Nov 2023 16:39:47 +0100 Subject: [PATCH] Remove unused function --- src/ChatPage.h | 29 ----------------------------- 1 file changed, 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 #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; -}