]> source.dussan.org Git - archiva.git/commitdiff
remove redundant code (classifier argument is not used, maven-plugin maps to maven...
authorBrett Porter <brett@apache.org>
Wed, 10 Mar 2010 00:35:11 +0000 (00:35 +0000)
committerBrett Porter <brett@apache.org>
Wed, 10 Mar 2010 00:35:11 +0000 (00:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921193 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/AbstractLegacyRepositoryContent.java

index dc5da53d6e4b7c5db8192779760fe7cb67b12332..23f435a90ab5cef1019e52feaac85a9f1252852d 100644 (file)
@@ -42,7 +42,6 @@ public abstract class AbstractLegacyRepositoryContent
     {
         typeToDirectoryMap = new HashMap<String, String>();
         typeToDirectoryMap.put( "ejb-client", "ejb" );
-        typeToDirectoryMap.put( ArtifactExtensionMapping.MAVEN_PLUGIN, "maven-plugin" );
         typeToDirectoryMap.put( ArtifactExtensionMapping.MAVEN_ONE_PLUGIN, "plugin" );
         typeToDirectoryMap.put( "distribution-tgz", "distribution" );
         typeToDirectoryMap.put( "distribution-zip", "distribution" );
@@ -87,7 +86,7 @@ public abstract class AbstractLegacyRepositoryContent
         StringBuffer path = new StringBuffer();
 
         path.append( groupId ).append( PATH_SEPARATOR );
-        path.append( getDirectory( classifier, type ) ).append( PATH_SEPARATOR );
+        path.append( getDirectory( type ) ).append( PATH_SEPARATOR );
 
         if ( version != null )
         {
@@ -104,9 +103,9 @@ public abstract class AbstractLegacyRepositoryContent
         return path.toString();
     }
 
-    private String getDirectory( String classifier, String type )
+    private String getDirectory( String type )
     {
-        String dirname = (String) typeToDirectoryMap.get( type );
+        String dirname = typeToDirectoryMap.get( type );
 
         if ( dirname != null )
         {