From a635f44acee7c6374f3bae4ae63b8e01c3bdc783 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 2 Nov 2011 22:32:43 +0000 Subject: [PATCH] remove unused imports and fields git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196843 13f79535-47bb-0310-9956-ffa450edef68 --- .../scheduler/indexing/ArchivaIndexingTaskExecutor.java | 9 --------- .../archiva/scheduler/indexing/ArtifactIndexingTask.java | 6 ------ 2 files changed, 15 deletions(-) diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java index 059898732..63c548a63 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java @@ -23,7 +23,6 @@ package org.apache.archiva.scheduler.indexing; import org.apache.archiva.admin.model.RepositoryAdminException; import org.apache.archiva.admin.model.beans.ManagedRepository; import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin; -import org.apache.archiva.common.plexusbridge.MavenIndexerUtils; import org.apache.archiva.common.plexusbridge.PlexusSisuBridge; import org.apache.archiva.common.plexusbridge.PlexusSisuBridgeException; import org.apache.commons.lang.StringUtils; @@ -36,7 +35,6 @@ import org.apache.maven.index.FlatSearchResponse; import org.apache.maven.index.MAVEN; import org.apache.maven.index.NexusIndexer; import org.apache.maven.index.artifact.IllegalArtifactCoordinateException; -import org.apache.maven.index.context.IndexCreator; import org.apache.maven.index.context.IndexingContext; import org.apache.maven.index.expr.SourcedSearchExpression; import org.apache.maven.index.packer.IndexPacker; @@ -52,7 +50,6 @@ import javax.annotation.PostConstruct; import javax.inject.Inject; import java.io.File; import java.io.IOException; -import java.util.List; /** * ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing artifacts from the index are @@ -75,16 +72,11 @@ public class ArchivaIndexingTaskExecutor @Inject private PlexusSisuBridge plexusSisuBridge; - @Inject - private MavenIndexerUtils mavenIndexerUtils; - @Inject private ManagedRepositoryAdmin managedRepositoryAdmin; private NexusIndexer nexusIndexer; - private List allIndexCreators; - @PostConstruct public void initialize() throws PlexusSisuBridgeException @@ -97,7 +89,6 @@ public class ArchivaIndexingTaskExecutor nexusIndexer = plexusSisuBridge.lookup( NexusIndexer.class ); - allIndexCreators = mavenIndexerUtils.getAllIndexCreators(); } public void executeTask( Task task ) diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArtifactIndexingTask.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArtifactIndexingTask.java index 560105366..28c85a7a4 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArtifactIndexingTask.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArtifactIndexingTask.java @@ -20,16 +20,10 @@ package org.apache.archiva.scheduler.indexing; */ import org.apache.archiva.admin.model.beans.ManagedRepository; -import org.apache.maven.index.NexusIndexer; -import org.apache.maven.index.context.IndexCreator; import org.apache.maven.index.context.IndexingContext; -import org.apache.maven.index.context.UnsupportedExistingLuceneIndexException; import org.codehaus.plexus.taskqueue.Task; -import org.slf4j.LoggerFactory; import java.io.File; -import java.io.IOException; -import java.util.List; public class ArtifactIndexingTask implements Task -- 2.39.5