summary refs log tree commit diff
path: root/src/Utils.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 16:37:51 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 16:38:11 +0200
commit9eddcfc42f3cd4e513f72d9b7fef9a98b43a378d (patch)
tree565f982881fdefdf8b2f3a0cfea14b4064863a99 /src/Utils.h
parentTranslated using Weblate (Italian) (diff)
downloadnheko-9eddcfc42f3cd4e513f72d9b7fef9a98b43a378d.tar.xz
Remove some redundant functions
Diffstat (limited to 'src/Utils.h')
-rw-r--r--src/Utils.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/Utils.h b/src/Utils.h
index 80f2aa70..07a4a648 100644
--- a/src/Utils.h
+++ b/src/Utils.h
@@ -186,42 +186,6 @@ erase_if(ContainerT &items, const PredicateT &predicate)
         }
 }
 
-inline uint64_t
-event_timestamp(const mtx::events::collections::TimelineEvents &event)
-{
-        return std::visit([](auto msg) { return msg.origin_server_ts; }, event);
-}
-
-inline nlohmann::json
-serialize_event(const mtx::events::collections::TimelineEvents &event)
-{
-        return std::visit([](auto msg) { return json(msg); }, event);
-}
-
-inline mtx::events::EventType
-event_type(const mtx::events::collections::TimelineEvents &event)
-{
-        return std::visit([](auto msg) { return msg.type; }, event);
-}
-
-inline std::string
-event_id(const mtx::events::collections::TimelineEvents &event)
-{
-        return std::visit([](auto msg) { return msg.event_id; }, event);
-}
-
-inline QString
-eventId(const mtx::events::collections::TimelineEvents &event)
-{
-        return QString::fromStdString(event_id(event));
-}
-
-inline QString
-event_sender(const mtx::events::collections::TimelineEvents &event)
-{
-        return std::visit([](auto msg) { return QString::fromStdString(msg.sender); }, event);
-}
-
 template<class T>
 QString
 message_body(const mtx::events::collections::TimelineEvents &event)