mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-26 04:39:51 -04:00
remove small thing
This commit is contained in:
parent
4246856559
commit
4a6105a976
1 changed files with 1 additions and 2 deletions
|
@ -53,13 +53,12 @@ namespace geode {
|
|||
template <is_filter T>
|
||||
class EventListener : public EventListenerProtocol {
|
||||
public:
|
||||
using Ev = typename T::Event;
|
||||
using Callback = typename T::Callback;
|
||||
template <typename C> requires std::is_class_v<C>
|
||||
using MemberFn = typename to_member<C, Callback>::value;
|
||||
|
||||
ListenerResult passThrough(Event* e) override {
|
||||
if (auto myev = dynamic_cast<Ev*>(e)) {
|
||||
if (auto myev = dynamic_cast<typename T::Event*>(e)) {
|
||||
return m_filter.handle(m_callback, myev);
|
||||
}
|
||||
return ListenerResult::Propagate;
|
||||
|
|
Loading…
Add table
Reference in a new issue