]> source.dussan.org Git - archiva.git/commitdiff
Removing unused method
authorMartin Stockhammer <martin_s@apache.org>
Tue, 2 Jun 2020 12:52:44 +0000 (14:52 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Tue, 2 Jun 2020 12:52:44 +0000 (14:52 +0200)
archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/BaseRepositoryContentLayout.java
archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java
archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java
archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java

index 6a0b0a86d508e00153246f1c909be80ac256597c..20a9577ffa9dc47d6cf9e43007ae8965424c7462 100644 (file)
@@ -428,14 +428,5 @@ public interface BaseRepositoryContentLayout extends ManagedRepositoryContentLay
      */
     StorageAsset toFile( ArchivaArtifact reference );
 
-    /**
-     * Given a {@link ProjectReference}, return the path to the metadata for
-     * the project.
-     *
-     * @param reference the reference to use.
-     * @return the path to the metadata file, or null if no metadata is appropriate.
-     */
-    String toMetadataPath( ProjectReference reference );
-
 
 }
index ddf40519aa396af24413d857b1c692b6ffdf9bbf..16c83a7af265b730b7c5c8dc1387b024f6cf8e92 100644 (file)
@@ -417,12 +417,6 @@ public class ManagedRepositoryContentMock implements BaseRepositoryContentLayout
         return null;
     }
 
-    @Override
-    public String toMetadataPath( ProjectReference reference )
-    {
-        return null;
-    }
-
     @Override
     public String toPath( ArtifactReference reference )
     {
index 0bba6d5b27df99c5d81d4bffd4ceb1c43003c3da..ab42866bbfe6cac24c3ec304fdaf84e4a674aa93 100644 (file)
@@ -615,17 +615,6 @@ public class ManagedRepositoryContentMock implements BaseRepositoryContentLayout
         return directory.replace( GROUP_SEPARATOR, PATH_SEPARATOR );
     }
 
-    public String toMetadataPath( ProjectReference reference )
-    {
-        StringBuilder path = new StringBuilder();
-
-        path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
-        path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
-        path.append( MAVEN_METADATA );
-
-        return path.toString();
-    }
-
     @Override
     public String toPath( ArtifactReference reference )
     {
index f2541b010b9e1814331aa123a830bfd17254b79c..623bf8c67a4ea1509d05f137863e7b90e0fbbd31 100644 (file)
@@ -627,17 +627,6 @@ public class ManagedRepositoryContentMock implements BaseRepositoryContentLayout
         return directory.replace( GROUP_SEPARATOR, PATH_SEPARATOR );
     }
 
-    public String toMetadataPath( ProjectReference reference )
-    {
-        StringBuilder path = new StringBuilder();
-
-        path.append( formatAsDirectory( reference.getGroupId() ) ).append( PATH_SEPARATOR );
-        path.append( reference.getArtifactId() ).append( PATH_SEPARATOR );
-        path.append( MAVEN_METADATA );
-
-        return path.toString();
-    }
-
     @Override
     public String toPath( ArtifactReference reference )
     {