aboutsummaryrefslogtreecommitdiff
path: root/lib/events/simplestateevents.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-03 21:36:32 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-03 21:36:32 +0100
commit776d05bf98a5dd9e484d5a0e651c71fa95498689 (patch)
treed4aa161274e8fe8bcb0bc05ac1ba9fb7dfe6940f /lib/events/simplestateevents.h
parent0d212bdb7849d12582d906a03935cb6f51767e3b (diff)
downloadlibquotient-776d05bf98a5dd9e484d5a0e651c71fa95498689.tar.gz
libquotient-776d05bf98a5dd9e484d5a0e651c71fa95498689.zip
Cleanup; drop an unused RoomAliasesEvent constructor
Also, RoomAliasesEvent is to be completely gone after 0.7.
Diffstat (limited to 'lib/events/simplestateevents.h')
-rw-r--r--lib/events/simplestateevents.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h
index cf1bfbba..9ce78609 100644
--- a/lib/events/simplestateevents.h
+++ b/lib/events/simplestateevents.h
@@ -8,8 +8,7 @@
namespace Quotient {
namespace EventContent {
template <typename T>
- class SimpleContent {
- public:
+ struct SimpleContent {
using value_type = T;
// The constructor is templated to enable perfect forwarding
@@ -25,11 +24,8 @@ namespace EventContent {
return { { key, Quotient::toJson(value) } };
}
- public:
T value;
-
- protected:
- QString key;
+ const QString key;
};
} // namespace EventContent
@@ -65,10 +61,6 @@ public:
explicit RoomAliasesEvent(const QJsonObject& obj)
: StateEvent(typeId(), obj, QStringLiteral("aliases"))
{}
- RoomAliasesEvent(const QString& server, const QStringList& aliases)
- : StateEvent(typeId(), matrixTypeId(), server,
- QStringLiteral("aliases"), aliases)
- {}
QString server() const { return stateKey(); }
QStringList aliases() const { return content().value; }
};