Commits

Sebastian Sdorra committed f240356

remove unused fields

Comments (0)

Files changed (2)

scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java

 //~--- non-JDK imports --------------------------------------------------------
 
 import com.google.common.io.Closeables;
-import com.google.inject.Provider;
 
 import sonia.scm.repository.Feature;
-import sonia.scm.repository.HgContext;
 import sonia.scm.repository.HgRepositoryHandler;
 import sonia.scm.repository.Repository;
 import sonia.scm.repository.api.Command;
    *
    *
    *
-   * @param hgContextProvider
    * @param handler
    * @param repository
    */
-  HgRepositoryServiceProvider(HgRepositoryHandler handler,
-    Provider<HgContext> hgContextProvider, Repository repository)
+  HgRepositoryServiceProvider(HgRepositoryHandler handler, Repository repository)
   {
-    this.hgContextProvider = hgContextProvider;
-    this.handler = handler;
     this.repository = repository;
     this.repositoryDirectory = handler.getDirectory(repository);
     this.context = new HgCommandContext(handler.getConfig(), repository,
   private HgCommandContext context;
 
   /** Field description */
-  private HgRepositoryHandler handler;
-
-  /** Field description */
-  private Provider<HgContext> hgContextProvider;
-
-  /** Field description */
   private Repository repository;
 
   /** Field description */

scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceResolver.java

  */
 
 
+
 package sonia.scm.repository.spi;
 
 //~--- non-JDK imports --------------------------------------------------------
 
 import com.google.inject.Inject;
-import com.google.inject.Provider;
 
 import sonia.scm.plugin.ext.Extension;
-import sonia.scm.repository.HgContext;
 import sonia.scm.repository.HgRepositoryHandler;
 import sonia.scm.repository.Repository;
 
    *
    *
    * @param handler
-   * @param hgContextProvider
    */
   @Inject
-  public HgRepositoryServiceResolver(HgRepositoryHandler handler,
-                                     Provider<HgContext> hgContextProvider)
+  public HgRepositoryServiceResolver(HgRepositoryHandler handler)
   {
     this.handler = handler;
-    this.hgContextProvider = hgContextProvider;
   }
 
   //~--- methods --------------------------------------------------------------
 
     if (TYPE.equalsIgnoreCase(repository.getType()))
     {
-      provider = new HgRepositoryServiceProvider(handler, hgContextProvider,
-              repository);
+      provider = new HgRepositoryServiceProvider(handler, repository);
     }
 
     return provider;
 
   /** Field description */
   private HgRepositoryHandler handler;
-
-  /** Field description */
-  private Provider<HgContext> hgContextProvider;
 }