clean up FunctionalEventHandlerImpl

This commit is contained in:
dfsek committed 2021-11-21 18:47:23 -07:00
1 parent ee9c60b127
commit 1a9fdabc4a
2 files changed
+1 -7

No files matched your search

@@ -33,7 +33,7 @@ public class EventManagerImpl implements EventManager {
public EventManagerImpl(Platform platform) {
this.platform = platform;
registerHandler(FunctionalEventHandler.class, new FunctionalEventHandlerImpl(platform)); // default handler
registerHandler(FunctionalEventHandler.class, new FunctionalEventHandlerImpl()); // default handler
}
@Override
@@ -43,12 +43,6 @@ public class FunctionalEventHandlerImpl implements FunctionalEventHandler {
private final Map<Type, List<EventContextImpl<?>>> contextMap = new HashMap<>();
private final Platform platform;
public FunctionalEventHandlerImpl(Platform platform) {
this.platform = platform;
}
@SuppressWarnings("unchecked")
@Override
public void handle(Event event) {