Skip to content

Commit

Permalink
Small clean-ups in event manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
astei committed Sep 15, 2024
1 parent 4eb02c8 commit ffa78d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public EventTypeTracker() {
}

public Collection<Class<?>> getFriendsOf(final Class<?> eventType) {
if (friends.containsKey(eventType)) {
return friends.get(eventType);
ImmutableSet<Class<?>> existingFriends = friends.get(eventType);
if (existingFriends != null) {
return existingFriends;
}

final Collection<Class<?>> types = getEventTypes(eventType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,6 @@ public HandlerRegistration(final PluginContainer plugin, final short order,
}
}

enum AsyncType {
/**
* The complete event will be handled on an async thread.
*/
ALWAYS,
/**
* The event will never run async, everything is handled on the netty thread.
*/
NEVER
}

static final class HandlersCache {

final HandlerRegistration[] handlers;
Expand Down

0 comments on commit ffa78d2

Please sign in to comment.