From 9975401b3440ea1715a6dfd0e3e68f74f8ef0ccc Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Wed, 9 Dec 2009 00:34:57 +0000 Subject: [PATCH] [MRM-1025] remove unused dependencies git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888661 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-base/archiva-indexer/pom.xml | 8 ----- .../indexer/search/SearchResultHit.java | 36 ------------------- 2 files changed, 44 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-indexer/pom.xml b/archiva-modules/archiva-base/archiva-indexer/pom.xml index 5eb3c19eb..a91eb5956 100644 --- a/archiva-modules/archiva-base/archiva-indexer/pom.xml +++ b/archiva-modules/archiva-base/archiva-indexer/pom.xml @@ -32,14 +32,6 @@ org.apache.archiva archiva-configuration - - org.apache.archiva - archiva-model - - - org.apache.archiva - archiva-repository-layer - org.apache.lucene lucene-core diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java index e966f85c4..42b7e61f6 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/SearchResultHit.java @@ -19,9 +19,6 @@ package org.apache.archiva.indexer.search; * under the License. */ -import org.apache.commons.lang.StringUtils; -import org.apache.maven.archiva.model.ArchivaArtifact; - import java.util.ArrayList; import java.util.List; @@ -51,8 +48,6 @@ public class SearchResultHit private List versions = new ArrayList(); - private ArchivaArtifact artifact; - public String getContext() { return context; @@ -88,37 +83,6 @@ public class SearchResultHit this.artifactId = artifactId; } - public void setArtifact( ArchivaArtifact artifact ) - { - this.artifact = artifact; - final String ver = artifact.getVersion(); - - if ( !this.versions.contains( ver ) ) - { - this.versions.add( ver ); - } - - if ( StringUtils.isBlank( this.groupId ) ) - { - this.groupId = artifact.getGroupId(); - } - - if ( StringUtils.isBlank( this.artifactId ) ) - { - this.artifactId = artifact.getArtifactId(); - } - - if ( StringUtils.isBlank( this.version ) ) - { - this.version = ver; - } - } - - public ArchivaArtifact getArtifact() - { - return artifact; - } - public String getGroupId() { return groupId;