]> source.dussan.org Git - archiva.git/commitdiff
remove unused imports and fields
authorOlivier Lamy <olamy@apache.org>
Wed, 2 Nov 2011 22:32:43 +0000 (22:32 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 2 Nov 2011 22:32:43 +0000 (22:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196843 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java
archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArtifactIndexingTask.java

index 0598987327b77ba0e139ecc008a15e2924db6e23..63c548a6325f2829a4b8c1e0184cb2f334d1062b 100644 (file)
@@ -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<? extends IndexCreator> 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 )
index 5601053661b979718da4a4c38b4f27828b627dab..28c85a7a4a873cf333aa757d0707abad7b7275b6 100644 (file)
@@ -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