From 1d2f4d02cf3e78439969b429197074a8e8e99f6d Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sat, 15 Jul 2017 11:19:14 -0400 Subject: [PATCH] Remove transitiveScratch This is used only by sbt, and we are not sure if it needs to be part of the API --- .../DependencyResolution.scala | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala b/core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala index b2d5beb03..f9f2f41cc 100644 --- a/core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala +++ b/core/src/main/scala/sbt/librarymanagement/DependencyResolution.scala @@ -136,26 +136,6 @@ class DependencyResolution private[sbt] (lmEngine: DependencyResolutionInterface } } - def transitiveScratch( - label: String, - config: GetClassifiersConfiguration, - uwconfig: UnresolvedWarningConfiguration, - log: Logger - ): Either[UnresolvedWarning, UpdateReport] = { - import config.{ updateConfiguration => c, module => mod } - import mod.{ id, dependencies => deps, scalaModuleInfo } - val base = restrictedCopy(id, true).withName(id.name + "$" + label) - val module = moduleDescriptor(base, deps, scalaModuleInfo) - val report = update(module, c, uwconfig, log) match { - case Right(r) => r - case Left(w) => - throw w.resolveException - } - val newConfig = config - .withModule(mod.withDependencies(report.allModules)) - updateClassifiers(newConfig, uwconfig, Vector(), log) - } - /** * Creates explicit artifacts for each classifier in `config.module`, and then attempts to resolve them directly. This * is for Maven compatibility, where these artifacts are not "published" in the POM, so they don't end up in the Ivy