diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-11 13:18:40 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-11 13:18:40 +0900 |
commit | 9ce16ef3123d5e63b931cafefb7dba4e894fc82b (patch) | |
tree | 016937f43d78da8adb7632340b5fb49c88e04b17 /lib/events/event.h | |
parent | 0ecc5d4992ad2086ee9e399a23f233b653b74ee3 (diff) | |
download | libquotient-9ce16ef3123d5e63b931cafefb7dba4e894fc82b.tar.gz libquotient-9ce16ef3123d5e63b931cafefb7dba4e894fc82b.zip |
Drop EventType namespace and DEFINE_EVENTTYPE_ALIAS macro
They've been deprecated for almost a year by now.
Diffstat (limited to 'lib/events/event.h')
-rw-r--r-- | lib/events/event.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index e96d6897..d9c8e088 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -305,28 +305,6 @@ using Events = EventsArray<Event>; } \ // End of macro -#ifdef USE_EVENTTYPE_ALIAS -namespace EventType { - inline event_type_t logEventType(event_type_t id, const char* idName) - { - qDebug(EVENTS) << "Using id" << id << "for" << idName; - return id; - } -} // namespace EventType - -// This macro provides constants in EventType:: namespace for -// back-compatibility with libQMatrixClient 0.3 event type system. -# define DEFINE_EVENTTYPE_ALIAS(_Id, _Type) \ - namespace EventType { \ - [[deprecated("Use is<>(), eventCast<>() or " \ - "visit<>()")]] static const auto _Id = \ - logEventType(typeId<_Type>(), #_Id); \ - } \ - // End of macro -#else -# define DEFINE_EVENTTYPE_ALIAS(_Id, _Type) // Nothing -#endif - // === is<>(), eventCast<>() and visit<>() === template <typename EventT> |