aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-scanner
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-07 19:32:53 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-07 19:32:53 +0200
commitb942314aa27330a179acf17300fea6849bf89d4d (patch)
treee3b24524eef26a682b914e504ec2b75b482a68c7 /archiva-modules/archiva-base/archiva-repository-scanner
parentaa8de8c74bf32637227d55b583e3d75979eadaff (diff)
downloadarchiva-b942314aa27330a179acf17300fea6849bf89d4d.tar.gz
archiva-b942314aa27330a179acf17300fea6849bf89d4d.zip
Removing unused repository API method
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-scanner')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java
index 5deb975e7..054d09561 100644
--- a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java
+++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/mock/ManagedRepositoryContentMock.java
@@ -336,30 +336,6 @@ public class ManagedRepositoryContentMock implements BaseRepositoryContentLayout
private Map<ArtifactReference, String> refs = new HashMap<>();
- @Override
- public ArtifactReference toArtifactReference( String path ) throws LayoutException
- {
- if ( StringUtils.isBlank( path ) )
- {
- throw new LayoutException( "Unable to convert blank path." );
- }
-
- ArtifactMetadata metadata = getArtifactForPath("test-repository", path);
-
- ArtifactReference artifact = new ArtifactReference();
- artifact.setGroupId( metadata.getNamespace() );
- artifact.setArtifactId( metadata.getProject() );
- artifact.setVersion( metadata.getVersion() );
- MavenArtifactFacet facet = (MavenArtifactFacet) metadata.getFacet( MavenArtifactFacet.FACET_ID );
- if ( facet != null )
- {
- artifact.setClassifier( facet.getClassifier() );
- artifact.setType( facet.getType() );
- }
- refs.put(artifact, path);
- return artifact;
- }
-
public ArtifactMetadata getArtifactForPath( String repoId, String relativePath )
{
String[] parts = relativePath.replace( '\\', '/' ).split( "/" );