mirror of https://github.com/sbt/sbt.git
remove unused imports (#2719)
This commit is contained in:
parent
2df9f9492d
commit
27fe8eb6f7
|
|
@ -10,7 +10,7 @@ import sbt.io.IO
|
||||||
|
|
||||||
object EvalTest extends Properties("eval") {
|
object EvalTest extends Properties("eval") {
|
||||||
private[this] val reporter = new StoreReporter
|
private[this] val reporter = new StoreReporter
|
||||||
import reporter.{ ERROR, Info, Severity }
|
import reporter.{ ERROR, Info }
|
||||||
private[this] val eval = new Eval(_ => reporter, None)
|
private[this] val eval = new Eval(_ => reporter, None)
|
||||||
|
|
||||||
property("inferred integer") = forAll { (i: Int) =>
|
property("inferred integer") = forAll { (i: Int) =>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package sbt
|
package sbt
|
||||||
package std
|
package std
|
||||||
|
|
||||||
import language.experimental.macros
|
|
||||||
import reflect.macros._
|
import reflect.macros._
|
||||||
|
|
||||||
import Def.Initialize
|
import Def.Initialize
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package sbt
|
||||||
package std
|
package std
|
||||||
|
|
||||||
import sbt.internal.util.complete
|
import sbt.internal.util.complete
|
||||||
import sbt.internal.util.complete.{ DefaultParsers, Parsers }
|
import sbt.internal.util.complete.DefaultParsers
|
||||||
|
|
||||||
/*object UseTask
|
/*object UseTask
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,11 @@ import Keys._
|
||||||
import xsbt.api.Discovery
|
import xsbt.api.Discovery
|
||||||
import xsbti.compile.{
|
import xsbti.compile.{
|
||||||
Compilers,
|
Compilers,
|
||||||
ClasspathOptions,
|
|
||||||
CompileAnalysis,
|
CompileAnalysis,
|
||||||
CompileOptions,
|
CompileOptions,
|
||||||
CompileOrder,
|
CompileOrder,
|
||||||
CompileResult,
|
CompileResult,
|
||||||
DefinesClass,
|
DefinesClass,
|
||||||
IncOptions,
|
|
||||||
IncOptionsUtil,
|
IncOptionsUtil,
|
||||||
Inputs,
|
Inputs,
|
||||||
MiniSetup,
|
MiniSetup,
|
||||||
|
|
@ -69,10 +67,8 @@ import xsbti.compile.{
|
||||||
import sbt.internal.inc.{
|
import sbt.internal.inc.{
|
||||||
AnalyzingCompiler,
|
AnalyzingCompiler,
|
||||||
Analysis,
|
Analysis,
|
||||||
ClassfileManager,
|
|
||||||
CompilerCache,
|
CompilerCache,
|
||||||
FileValueCache,
|
FileValueCache,
|
||||||
IncrementalCompilerImpl,
|
|
||||||
Locate,
|
Locate,
|
||||||
LoggerReporter,
|
LoggerReporter,
|
||||||
MixedAnalyzingCompiler,
|
MixedAnalyzingCompiler,
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,7 @@ import java.io.File
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
import scala.concurrent.duration.{ FiniteDuration, Duration }
|
import scala.concurrent.duration.{ FiniteDuration, Duration }
|
||||||
import Def.ScopedKey
|
import Def.ScopedKey
|
||||||
import sbt.internal.util.complete._
|
import sbt.internal.inc.ScalaInstance
|
||||||
import sbt.internal.inc.{ MixedAnalyzingCompiler, ScalaInstance }
|
|
||||||
import std.TaskExtra._
|
|
||||||
import xsbti.compile.{
|
import xsbti.compile.{
|
||||||
DefinesClass,
|
DefinesClass,
|
||||||
ClasspathOptions,
|
ClasspathOptions,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import java.io._
|
|
||||||
|
|
||||||
import org.specs2.mutable.Specification
|
import org.specs2.mutable.Specification
|
||||||
|
|
||||||
object DefaultsTest extends Specification {
|
object DefaultsTest extends Specification {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import Project._
|
import Project._
|
||||||
import sbt.internal.util.Types.{ idFun, some }
|
import sbt.internal.util.Types.idFun
|
||||||
import sbt.internal.TestBuild._
|
import sbt.internal.TestBuild._
|
||||||
|
|
||||||
import java.io.File
|
|
||||||
import java.net.URI
|
|
||||||
import org.scalacheck._
|
import org.scalacheck._
|
||||||
import Prop._
|
import Prop._
|
||||||
import Gen._
|
import Gen._
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import Def.{ displayFull, displayMasked, ScopedKey }
|
import Def.{ displayFull, displayMasked, ScopedKey }
|
||||||
import java.net.URI
|
|
||||||
import sbt.internal.{ TestBuild, Resolve }
|
import sbt.internal.{ TestBuild, Resolve }
|
||||||
import TestBuild._
|
import TestBuild._
|
||||||
import sbt.internal.util.complete._
|
import sbt.internal.util.complete._
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import java.io.File
|
|
||||||
import org.specs2._
|
import org.specs2._
|
||||||
import mutable.Specification
|
import mutable.Specification
|
||||||
import sbt.util.Logger
|
import sbt.util.Logger
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,12 @@ package internal
|
||||||
|
|
||||||
import Def.{ ScopedKey, Setting }
|
import Def.{ ScopedKey, Setting }
|
||||||
import sbt.internal.util.{ AttributeKey, AttributeMap, Relation, Settings }
|
import sbt.internal.util.{ AttributeKey, AttributeMap, Relation, Settings }
|
||||||
import sbt.internal.util.Types.{ const, idFun, some }
|
import sbt.internal.util.Types.{ const, some }
|
||||||
import sbt.internal.util.complete.Parser
|
import sbt.internal.util.complete.Parser
|
||||||
|
|
||||||
import java.io.File
|
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
import org.scalacheck._
|
import org.scalacheck._
|
||||||
import Prop._
|
|
||||||
import Gen._
|
import Gen._
|
||||||
import Arbitrary.arbBool
|
|
||||||
|
|
||||||
// Notes:
|
// Notes:
|
||||||
// Generator doesn't produce cross-build project dependencies or do anything with the 'extra' axis
|
// Generator doesn't produce cross-build project dependencies or do anything with the 'extra' axis
|
||||||
|
|
@ -59,7 +56,7 @@ object TestBuild {
|
||||||
lazy val allAttributeKeys: Set[AttributeKey[_]] = data.data.values.flatMap(_.keys).toSet
|
lazy val allAttributeKeys: Set[AttributeKey[_]] = data.data.values.flatMap(_.keys).toSet
|
||||||
lazy val (taskAxes, globalTaskAxis, onlyTaskAxis, multiTaskAxis) =
|
lazy val (taskAxes, globalTaskAxis, onlyTaskAxis, multiTaskAxis) =
|
||||||
{
|
{
|
||||||
import collection.{ breakOut, mutable }
|
import collection.mutable
|
||||||
import mutable.HashSet
|
import mutable.HashSet
|
||||||
|
|
||||||
// task axis of Scope is set to Global and the value of the second map is the original task axis
|
// task axis of Scope is set to Global and the value of the second map is the original task axis
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ package sbt
|
||||||
import org.scalacheck._
|
import org.scalacheck._
|
||||||
import Prop._
|
import Prop._
|
||||||
import TaskGen._
|
import TaskGen._
|
||||||
import Task._
|
|
||||||
|
|
||||||
object TaskRunnerCircularTest extends Properties("TaskRunner Circular") {
|
object TaskRunnerCircularTest extends Properties("TaskRunner Circular") {
|
||||||
property("Catches circular references") = forAll(MaxTasksGen, MaxWorkersGen) { checkCircularReferences _ }
|
property("Catches circular references") = forAll(MaxTasksGen, MaxWorkersGen) { checkCircularReferences _ }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import sbt._
|
||||||
|
|
||||||
import org.scalacheck._
|
import org.scalacheck._
|
||||||
import Prop._
|
import Prop._
|
||||||
import Task._
|
|
||||||
import TaskGen._
|
import TaskGen._
|
||||||
import math.abs
|
import math.abs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,7 @@
|
||||||
*/
|
*/
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import sbt.internal.util.Types._
|
|
||||||
import sbt.internal.util.AList
|
import sbt.internal.util.AList
|
||||||
import Task._
|
|
||||||
import Execute._
|
|
||||||
|
|
||||||
object Test extends std.TaskExtra {
|
object Test extends std.TaskExtra {
|
||||||
def t2[A, B](a: Task[A], b: Task[B]) = multInputTask[({ type l[L[x]] = (L[A], L[B]) })#l]((a, b))(AList.tuple2)
|
def t2[A, B](a: Task[A], b: Task[B]) = multInputTask[({ type l[L[x]] = (L[A], L[B]) })#l]((a, b))(AList.tuple2)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ import sbt._
|
||||||
import org.scalacheck._
|
import org.scalacheck._
|
||||||
import Prop._
|
import Prop._
|
||||||
import TaskGen._
|
import TaskGen._
|
||||||
import Task._
|
|
||||||
|
|
||||||
object TaskRunnerCallTest extends Properties("TaskRunner Call") {
|
object TaskRunnerCallTest extends Properties("TaskRunner Call") {
|
||||||
property("calculates fibonacci") = forAll(MaxTasksGen, MaxWorkersGen) { (i: Int, workers: Int) =>
|
property("calculates fibonacci") = forAll(MaxTasksGen, MaxWorkersGen) { (i: Int, workers: Int) =>
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ package sbt
|
||||||
import org.scalacheck._
|
import org.scalacheck._
|
||||||
import Prop._
|
import Prop._
|
||||||
import TaskGen._
|
import TaskGen._
|
||||||
import Task._
|
|
||||||
import sbt.internal.util.Types._
|
|
||||||
|
|
||||||
object TaskRunnerSortTest extends Properties("TaskRunnerSort") {
|
object TaskRunnerSortTest extends Properties("TaskRunnerSort") {
|
||||||
property("sort") = forAll(TaskListGen, MaxWorkersGen) { (list: List[Int], workers: Int) =>
|
property("sort") = forAll(TaskListGen, MaxWorkersGen) { (list: List[Int], workers: Int) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue