diff options
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-layer')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java index f9b5bb13b..aabda49cf 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/ManagedDefaultRepositoryContent.java @@ -66,7 +66,6 @@ public class ManagedDefaultRepositoryContent } public void deleteVersion( VersionedReference reference ) - throws ContentNotFoundException { String path = toMetadataPath( reference ); File projectPath = new File( getRepoRoot(), path ); @@ -76,14 +75,9 @@ public class ManagedDefaultRepositoryContent { FileUtils.deleteQuietly( projectDir ); } - else - { - throw new ContentNotFoundException( "Unable to delete non-existing project directory: " + projectDir ); - } } public void deleteArtifact( ArtifactReference artifactReference ) - throws ContentNotFoundException { String path = toPath( artifactReference ); File filePath = new File( getRepoRoot(), path ); @@ -92,10 +86,6 @@ public class ManagedDefaultRepositoryContent { FileUtils.deleteQuietly( filePath ); } - else - { - throw new ContentNotFoundException( "Unable to delete non-existing project artifact: " + filePath ); - } } public String getId() |