clean up FunctionalEventHandlerImpl

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

View File

@ -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

View File

@ -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) {