From: Brett Porter Date: Wed, 10 Mar 2010 00:35:11 +0000 (+0000) Subject: remove redundant code (classifier argument is not used, maven-plugin maps to maven... X-Git-Tag: archiva-1.4-M1~994 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e14904c86ba77a099183da09ca89e100c6fba52;p=archiva.git remove redundant code (classifier argument is not used, maven-plugin maps to maven-plugin already using defaults) git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921193 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/AbstractLegacyRepositoryContent.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/AbstractLegacyRepositoryContent.java index dc5da53d6..23f435a90 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/AbstractLegacyRepositoryContent.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/AbstractLegacyRepositoryContent.java @@ -42,7 +42,6 @@ public abstract class AbstractLegacyRepositoryContent { typeToDirectoryMap = new HashMap(); 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 ) {