diff options
Diffstat (limited to 'src/events_ds.cc')
-rw-r--r-- | src/events_ds.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/events_ds.cc b/src/events_ds.cc index 3e1573f..ee21f93 100644 --- a/src/events_ds.cc +++ b/src/events_ds.cc @@ -56,18 +56,9 @@ void EventsDS::remove(EventID event_id) id_to_info.remove(event_id); } -Event* EventsDS::get(EventID event_id) +Event::Type EventsDS::getType(EventID event_id) const { - auto const& info = id_to_info.get(event_id); - - // add new event types here - switch (info.type) - { - case Event::Type::SampleEvent: - return &getSample<SampleEvent>(info); - default: - assert(false); - } + return id_to_info.get(event_id).type; } std::size_t EventsDS::numberOfEvents(channel_t ch) const |