This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit f4474599c1064853fc0db6b793cd3974311353fd Author: Benoit Tellier <[email protected]> AuthorDate: Sun Nov 17 21:13:33 2019 +0700 [Refactoring] protocols-imap4: remove unused code --- .../java/org/apache/james/imapserver/netty/IMAPServer.java | 8 -------- .../org/apache/james/imapserver/netty/NettyImapSession.java | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPServer.java b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPServer.java index b83b8e3..55dfc61 100644 --- a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPServer.java +++ b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPServer.java @@ -42,7 +42,6 @@ import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.netty.channel.ChannelUpstreamHandler; import org.jboss.netty.channel.group.ChannelGroup; -import org.jboss.netty.handler.codec.oneone.OneToOneEncoder; import org.jboss.netty.handler.execution.ExecutionHandler; import org.jboss.netty.handler.ssl.SslHandler; import org.jboss.netty.handler.stream.ChunkedWriteHandler; @@ -213,13 +212,6 @@ public class IMAPServer extends AbstractConfigurableAsyncServer implements ImapC return coreHandler; } - /** - * Return null as we don't need this - */ - protected OneToOneEncoder createEncoder() { - return null; - } - @Override protected ChannelHandlerFactory createFrameHandlerFactory() { return new SwitchableLineBasedFrameDecoderFactory(maxLineLength); diff --git a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java index f10fa1a..18b74bf 100644 --- a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java +++ b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java @@ -52,16 +52,6 @@ public class NettyImapSession implements ImapSession, NettyConstants { this.plainAuthDisallowed = plainAuthDisallowed; } - /** - * Return the wrapped {@link Channel} which this {@link ImapSession} is - * bound to - * - * @return channel - */ - public Channel getChannel() { - return channel; - } - @Override public void logout() { closeMailbox(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
