]> source.dussan.org Git - archiva.git/commitdiff
remove unused imports and methos
authorOlivier Lamy <olamy@apache.org>
Wed, 7 Sep 2011 20:37:33 +0000 (20:37 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 7 Sep 2011 20:37:33 +0000 (20:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1166393 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/connectors/proxy/DeleteProxyConnectorAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractRepositoriesAdminAction.java

index d0ec3885de474aaf683728991e1fb903d017a3d6..589892ebcf898b960947ca62c39e3d2e49ab29d7 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.maven.archiva.web.action.admin.connectors.proxy;
 
 import org.apache.archiva.admin.repository.RepositoryAdminException;
 import org.apache.archiva.admin.repository.proxyconnector.ProxyConnector;
-import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Controller;
 
index 43b3f9051a13a0019f71c24bf8bcc592cad02138..5f8ffeab440f46d61b46a3ad39cd22c8db927cc7 100644 (file)
@@ -27,7 +27,6 @@ import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.Configuration;
 import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
 import org.apache.maven.archiva.configuration.InvalidConfigurationException;
-import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.registry.RegistryException;
@@ -37,8 +36,6 @@ import org.codehaus.redback.integration.interceptor.SecureActionException;
 
 import javax.inject.Inject;
 import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
 
 /**
  * Abstract AdminRepositories Action base.
@@ -113,18 +110,6 @@ public abstract class AbstractRepositoriesAdminAction
         return SUCCESS;
     }
 
-    /**
-     * Get the list of ProxyConnectors that are present in the configuration.
-     *
-     * @return a new list of ProxyConnectors present in the configuration.
-     */
-    protected List<ProxyConnectorConfiguration> getProxyConnectors()
-    {
-        return new ArrayList<ProxyConnectorConfiguration>(
-            archivaConfiguration.getConfiguration().getProxyConnectors() );
-    }
-
-
     public ManagedRepositoryAdmin getManagedRepositoryAdmin()
     {
         return managedRepositoryAdmin;