From: David ‘Bombe’ Roden Date: Wed, 22 Oct 2014 17:48:32 +0000 (+0200) Subject: Remove currently unused parameter from event. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1dfa1a9060f24cf3d12e2f99461cfcc8914b1af7;p=xudocci.git Remove currently unused parameter from event. --- diff --git a/src/main/java/net/pterodactylus/irc/Connection.java b/src/main/java/net/pterodactylus/irc/Connection.java index 9d9ef72..45795f3 100644 --- a/src/main/java/net/pterodactylus/irc/Connection.java +++ b/src/main/java/net/pterodactylus/irc/Connection.java @@ -390,7 +390,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic /* 43x replies are for nick change errors. */ if (command.equals("431")) { - eventBus.post(new NoNicknameGivenReceived(this, reply)); + eventBus.post(new NoNicknameGivenReceived(this)); } else if (command.equals("433")) { if (!established.get()) { nickname = nicknameChooser.getNickname(); diff --git a/src/main/java/net/pterodactylus/irc/event/NoNicknameGivenReceived.java b/src/main/java/net/pterodactylus/irc/event/NoNicknameGivenReceived.java index aba2fb2..9733ada 100644 --- a/src/main/java/net/pterodactylus/irc/event/NoNicknameGivenReceived.java +++ b/src/main/java/net/pterodactylus/irc/event/NoNicknameGivenReceived.java @@ -25,18 +25,16 @@ import net.pterodactylus.irc.Reply; * * @author David ‘Bombe’ Roden */ -public class NoNicknameGivenReceived extends AbstractReplyEvent { +public class NoNicknameGivenReceived extends AbstractConnectionEvent { /** * Creates a new no nickname given event. * * @param connection * The connection the event occured on - * @param reply - * The reply that caused the event */ - public NoNicknameGivenReceived(Connection connection, Reply reply) { - super(connection, reply); + public NoNicknameGivenReceived(Connection connection) { + super(connection); } }