mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +00:00
clean up FunctionalEventHandlerImpl
This commit is contained in:
parent
ee9c60b127
commit
1a9fdabc4a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user