You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/12/18 11:23:22 UTC

[james-project] 07/13: [Refactoring] Remove unused constructors in LMTPProtocolHandlerChain

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 c65086336bb0975c2115616c037a0a9c186536b2
Author: Tran Tien Duc <dt...@linagora.com>
AuthorDate: Mon Dec 16 10:33:28 2019 +0700

    [Refactoring] Remove unused constructors in LMTPProtocolHandlerChain
---
 .../apache/james/protocols/lmtp/LMTPProtocolHandlerChain.java  | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/protocols/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPProtocolHandlerChain.java b/protocols/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPProtocolHandlerChain.java
index 7a21cca..86332d2 100644
--- a/protocols/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPProtocolHandlerChain.java
+++ b/protocols/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPProtocolHandlerChain.java
@@ -25,7 +25,6 @@ import org.apache.james.metrics.api.NoopMetricFactory;
 import org.apache.james.protocols.api.handler.CommandDispatcher;
 import org.apache.james.protocols.api.handler.CommandHandlerResultLogger;
 import org.apache.james.protocols.api.handler.ProtocolHandler;
-import org.apache.james.protocols.api.handler.WiringException;
 import org.apache.james.protocols.lmtp.core.DataLineMessageHookHandler;
 import org.apache.james.protocols.lmtp.core.LhloCmdHandler;
 import org.apache.james.protocols.lmtp.core.ReceivedDataLineFilter;
@@ -44,7 +43,6 @@ import org.apache.james.protocols.smtp.core.UnknownCmdHandler;
 import org.apache.james.protocols.smtp.core.VrfyCmdHandler;
 import org.apache.james.protocols.smtp.core.esmtp.MailSizeEsmtpExtension;
 import org.apache.james.protocols.smtp.core.esmtp.StartTlsCmdHandler;
-import org.apache.james.protocols.smtp.hook.Hook;
 
 /**
  * Special {@link SMTPProtocolHandlerChain} sub-class which should be used to build the chain for LMTP.
@@ -55,14 +53,6 @@ public class LMTPProtocolHandlerChain extends SMTPProtocolHandlerChain {
         super(new NoopMetricFactory());
     }
 
-    public LMTPProtocolHandlerChain(boolean addDefault) {
-        super(new NoopMetricFactory(), addDefault);
-    }
-
-    public LMTPProtocolHandlerChain(Hook... hooks) throws WiringException {
-        super(new NoopMetricFactory(), hooks);
-    }
-
     @Override
     protected List<ProtocolHandler> initDefaultHandlers() {
         List<ProtocolHandler> defaultHandlers = new ArrayList<>();


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org