Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Remove useless 'Closeable' implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SlamaFR committed Jul 30, 2019
1 parent ed27613 commit 3005d9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/main/java/fr/slama/yeahbot/blub/EventWaiter.java
Expand Up @@ -4,15 +4,14 @@
import net.dv8tion.jda.core.events.Event;
import net.dv8tion.jda.core.hooks.EventListener;

import java.io.Closeable;
import java.util.concurrent.TimeUnit;
import java.util.function.BiConsumer;
import java.util.function.Predicate;

/**
* Created on 17/12/2018.
*/
public class EventWaiter implements EventListener, Closeable {
public class EventWaiter implements EventListener {

private final Class classType;
private final Predicate condition;
Expand All @@ -35,7 +34,6 @@ private EventWaiter(Builder builder) {
}
}

@Override
public void close() {
YeahBot.getInstance().getShardManager().removeEventListener(this);
}
Expand Down
Expand Up @@ -12,7 +12,6 @@
import net.dv8tion.jda.core.events.message.react.MessageReactionRemoveEvent;
import net.dv8tion.jda.core.hooks.ListenerAdapter;

import java.io.Closeable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand All @@ -22,7 +21,7 @@
* Created on 24/09/2018.
*/

public class SelectionListener extends ListenerAdapter implements Closeable {
public class SelectionListener extends ListenerAdapter {

private static final String[] EMOTES = new String[]{
"\u0031\u20E3",
Expand Down Expand Up @@ -91,7 +90,6 @@ public static List<String> getQuestion() {
return EmoteUtil.getQuestionEmotes();
}

@Override
public void close() {
YeahBot.getInstance().getShardManager().removeEventListener(this);
result.accept(selection);
Expand Down

0 comments on commit 3005d9f

Please sign in to comment.