mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
remove unused fields
This commit is contained in:
@@ -36,10 +36,8 @@ package sonia.scm.repository.spi;
|
|||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
|
|
||||||
import com.google.common.io.Closeables;
|
import com.google.common.io.Closeables;
|
||||||
import com.google.inject.Provider;
|
|
||||||
|
|
||||||
import sonia.scm.repository.Feature;
|
import sonia.scm.repository.Feature;
|
||||||
import sonia.scm.repository.HgContext;
|
|
||||||
import sonia.scm.repository.HgRepositoryHandler;
|
import sonia.scm.repository.HgRepositoryHandler;
|
||||||
import sonia.scm.repository.Repository;
|
import sonia.scm.repository.Repository;
|
||||||
import sonia.scm.repository.api.Command;
|
import sonia.scm.repository.api.Command;
|
||||||
@@ -76,15 +74,11 @@ public class HgRepositoryServiceProvider extends RepositoryServiceProvider
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param hgContextProvider
|
|
||||||
* @param handler
|
* @param handler
|
||||||
* @param repository
|
* @param repository
|
||||||
*/
|
*/
|
||||||
HgRepositoryServiceProvider(HgRepositoryHandler handler,
|
HgRepositoryServiceProvider(HgRepositoryHandler handler, Repository repository)
|
||||||
Provider<HgContext> hgContextProvider, Repository repository)
|
|
||||||
{
|
{
|
||||||
this.hgContextProvider = hgContextProvider;
|
|
||||||
this.handler = handler;
|
|
||||||
this.repository = repository;
|
this.repository = repository;
|
||||||
this.repositoryDirectory = handler.getDirectory(repository);
|
this.repositoryDirectory = handler.getDirectory(repository);
|
||||||
this.context = new HgCommandContext(handler.getConfig(), repository,
|
this.context = new HgCommandContext(handler.getConfig(), repository,
|
||||||
@@ -220,12 +214,6 @@ public class HgRepositoryServiceProvider extends RepositoryServiceProvider
|
|||||||
/** Field description */
|
/** Field description */
|
||||||
private HgCommandContext context;
|
private HgCommandContext context;
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
private HgRepositoryHandler handler;
|
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
private Provider<HgContext> hgContextProvider;
|
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private Repository repository;
|
private Repository repository;
|
||||||
|
|
||||||
|
|||||||
@@ -30,15 +30,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package sonia.scm.repository.spi;
|
package sonia.scm.repository.spi;
|
||||||
|
|
||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
|
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Provider;
|
|
||||||
|
|
||||||
import sonia.scm.plugin.ext.Extension;
|
import sonia.scm.plugin.ext.Extension;
|
||||||
import sonia.scm.repository.HgContext;
|
|
||||||
import sonia.scm.repository.HgRepositoryHandler;
|
import sonia.scm.repository.HgRepositoryHandler;
|
||||||
import sonia.scm.repository.Repository;
|
import sonia.scm.repository.Repository;
|
||||||
|
|
||||||
@@ -60,14 +59,11 @@ public class HgRepositoryServiceResolver implements RepositoryServiceResolver
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param handler
|
* @param handler
|
||||||
* @param hgContextProvider
|
|
||||||
*/
|
*/
|
||||||
@Inject
|
@Inject
|
||||||
public HgRepositoryServiceResolver(HgRepositoryHandler handler,
|
public HgRepositoryServiceResolver(HgRepositoryHandler handler)
|
||||||
Provider<HgContext> hgContextProvider)
|
|
||||||
{
|
{
|
||||||
this.handler = handler;
|
this.handler = handler;
|
||||||
this.hgContextProvider = hgContextProvider;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- methods --------------------------------------------------------------
|
||||||
@@ -87,8 +83,7 @@ public class HgRepositoryServiceResolver implements RepositoryServiceResolver
|
|||||||
|
|
||||||
if (TYPE.equalsIgnoreCase(repository.getType()))
|
if (TYPE.equalsIgnoreCase(repository.getType()))
|
||||||
{
|
{
|
||||||
provider = new HgRepositoryServiceProvider(handler, hgContextProvider,
|
provider = new HgRepositoryServiceProvider(handler, repository);
|
||||||
repository);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return provider;
|
return provider;
|
||||||
@@ -98,7 +93,4 @@ public class HgRepositoryServiceResolver implements RepositoryServiceResolver
|
|||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private HgRepositoryHandler handler;
|
private HgRepositoryHandler handler;
|
||||||
|
|
||||||
/** Field description */
|
|
||||||
private Provider<HgContext> hgContextProvider;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user