mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Remove unused function
This commit is contained in:
parent
aeda42111b
commit
c2d50d52a4
1 changed files with 0 additions and 29 deletions
|
@ -7,17 +7,11 @@
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include <mtx/common.hpp>
|
|
||||||
#include <mtx/events.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/events/presence.hpp>
|
||||||
#include <mtx/secret_storage.hpp>
|
#include <mtx/secret_storage.hpp>
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QMap>
|
|
||||||
#include <QPoint>
|
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
@ -196,10 +190,6 @@ private:
|
||||||
void getProfileInfo();
|
void getProfileInfo();
|
||||||
void getBackupVersion();
|
void getBackupVersion();
|
||||||
|
|
||||||
using UserID = QString;
|
|
||||||
using Membership = mtx::events::StateEvent<mtx::events::state::Member>;
|
|
||||||
using Memberships = std::map<std::string, Membership>;
|
|
||||||
|
|
||||||
void loadStateFromCache();
|
void loadStateFromCache();
|
||||||
void resetUI();
|
void resetUI();
|
||||||
|
|
||||||
|
@ -210,9 +200,6 @@ private:
|
||||||
// we aren't looking
|
// we aren't looking
|
||||||
bool shouldThrottleSync() const;
|
bool shouldThrottleSync() const;
|
||||||
|
|
||||||
template<class Collection>
|
|
||||||
Memberships getMemberships(const std::vector<Collection> &events) const;
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void connectCallMessage();
|
void connectCallMessage();
|
||||||
|
|
||||||
|
@ -235,19 +222,3 @@ private:
|
||||||
QDateTime lastWindowActive;
|
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;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue