diff options
author | Martin Stockhammer <martin_s@apache.org> | 2020-06-07 19:32:53 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2020-06-07 19:32:53 +0200 |
commit | b942314aa27330a179acf17300fea6849bf89d4d (patch) | |
tree | e3b24524eef26a682b914e504ec2b75b482a68c7 /archiva-modules/archiva-base/archiva-repository-scanner | |
parent | aa8de8c74bf32637227d55b583e3d75979eadaff (diff) | |
download | archiva-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.java | 24 |
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( "/" ); |