Remove unnecessary field in EventBusImpl

This commit is contained in:
Vankka 2023-07-24 22:05:58 +03:00
parent 84160b906f
commit 224b24cb26
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -60,11 +60,9 @@ public class EventBusImpl implements EventBus {
private final Map<Object, List<EventListenerImpl>> listeners = new ConcurrentHashMap<>(); private final Map<Object, List<EventListenerImpl>> listeners = new ConcurrentHashMap<>();
private final List<EventListenerImpl> allListeners = new CopyOnWriteArrayList<>(); private final List<EventListenerImpl> allListeners = new CopyOnWriteArrayList<>();
private final DiscordSRV discordSRV;
private final Logger logger; private final Logger logger;
public EventBusImpl(DiscordSRV discordSRV) { public EventBusImpl(DiscordSRV discordSRV) {
this.discordSRV = discordSRV;
this.logger = new NamedLogger(discordSRV, "EVENT_BUS"); this.logger = new NamedLogger(discordSRV, "EVENT_BUS");
subscribe(this); subscribe(this);
} }