From 1dfa1a9060f24cf3d12e2f99461cfcc8914b1af7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 22 Oct 2014 19:48:32 +0200 Subject: [PATCH] Remove currently unused parameter from event. --- src/main/java/net/pterodactylus/irc/Connection.java | 2 +- .../java/net/pterodactylus/irc/event/NoNicknameGivenReceived.java | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) 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); } } -- 2.7.4