[MRM-1025] remove unused dependencies

git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-12-09 00:34:57 +00:00
parent add8678ac5
commit 9975401b34
2 changed files with 0 additions and 44 deletions

View File

@ -32,14 +32,6 @@
<groupId>org.apache.archiva</groupId> <groupId>org.apache.archiva</groupId>
<artifactId>archiva-configuration</artifactId> <artifactId>archiva-configuration</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-model</artifactId>
</dependency>
<dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-repository-layer</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.lucene</groupId> <groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId> <artifactId>lucene-core</artifactId>

View File

@ -19,9 +19,6 @@ package org.apache.archiva.indexer.search;
* under the License. * under the License.
*/ */
import org.apache.commons.lang.StringUtils;
import org.apache.maven.archiva.model.ArchivaArtifact;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -51,8 +48,6 @@ public class SearchResultHit
private List<String> versions = new ArrayList<String>(); private List<String> versions = new ArrayList<String>();
private ArchivaArtifact artifact;
public String getContext() public String getContext()
{ {
return context; return context;
@ -88,37 +83,6 @@ public class SearchResultHit
this.artifactId = artifactId; 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() public String getGroupId()
{ {
return groupId; return groupId;