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/11/20 01:56:55 UTC

[james-project] 27/49: [Refactoring] MailetConfigImpl::getInitAttribute is not used

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 56cbdbab7443ed199633d439c4fb380c55bfd854
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Nov 17 15:01:09 2019 +0700

    [Refactoring] MailetConfigImpl::getInitAttribute is not used
    
    Not defined in the API either...
---
 .../apache/james/mailetcontainer/impl/MailetConfigImpl.java  | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/MailetConfigImpl.java b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/MailetConfigImpl.java
index db29116..e5b30ab 100644
--- a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/MailetConfigImpl.java
+++ b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/MailetConfigImpl.java
@@ -89,18 +89,6 @@ public class MailetConfigImpl implements MailetConfig {
         return params.iterator();
     }
 
-    /**
-     * Get the value of an (XML) attribute stored in this MailetConfig.
-     * 
-     * @param name
-     *            the name of the attribute whose value is to be retrieved.
-     * 
-     * @return the attribute value or null if missing
-     */
-    public String getInitAttribute(String name) {
-        return configuration.getString("[@" + name + "]", null);
-    }
-
     @Override
     public MailetContext getMailetContext() {
         return mailetContext;


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