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) {
|
public EventManagerImpl(Platform platform) {
|
||||||
this.platform = platform;
|
this.platform = platform;
|
||||||
registerHandler(FunctionalEventHandler.class, new FunctionalEventHandlerImpl(platform)); // default handler
|
registerHandler(FunctionalEventHandler.class, new FunctionalEventHandlerImpl()); // default handler
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -43,12 +43,6 @@ public class FunctionalEventHandlerImpl implements FunctionalEventHandler {
|
|||||||
|
|
||||||
private final Map<Type, List<EventContextImpl<?>>> contextMap = new HashMap<>();
|
private final Map<Type, List<EventContextImpl<?>>> contextMap = new HashMap<>();
|
||||||
|
|
||||||
private final Platform platform;
|
|
||||||
|
|
||||||
public FunctionalEventHandlerImpl(Platform platform) {
|
|
||||||
this.platform = platform;
|
|
||||||
}
|
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public void handle(Event event) {
|
public void handle(Event event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user