diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-04-26 19:00:07 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-04-28 13:33:20 -0400 |
commit | 2277875205e69b6e4f527f341e1dcf16a8495326 (patch) | |
tree | b35036a458fa672a3068b43ef23cd0b69d07db9f /stage1/resolver.scala | |
parent | 56d780d05604cb8bb49c691889c398f1e570cb91 (diff) | |
download | cbt-2277875205e69b6e4f527f341e1dcf16a8495326.tar.gz cbt-2277875205e69b6e4f527f341e1dcf16a8495326.tar.bz2 cbt-2277875205e69b6e4f527f341e1dcf16a8495326.zip |
remove dead code
Diffstat (limited to 'stage1/resolver.scala')
-rw-r--r-- | stage1/resolver.scala | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/stage1/resolver.scala b/stage1/resolver.scala index ab2a18f..c2855c5 100644 --- a/stage1/resolver.scala +++ b/stage1/resolver.scala @@ -9,14 +9,6 @@ import paths._ import scala.concurrent._ import scala.concurrent.duration._ -private final class Tree( val root: Dependency, computeChildren: => Seq[Tree] ){ - lazy val children = computeChildren - def linearize: Seq[Dependency] = root +: children.flatMap(_.linearize) - def show(indent: Int = 0): Stream[Char] = { - (" " * indent ++ root.show ++ "\n").toStream #::: children.map(_.show(indent+1)).foldLeft(Stream.empty[Char])(_ #::: _) - } -} - trait ArtifactInfo extends Dependency{ def artifactId: String def groupId: String @@ -144,11 +136,6 @@ abstract class Dependency{ def dependencyClasspath : ClassPath = ClassPath.flatten( transitiveDependencies.map(_.exportedClasspath) ) def dependencies: Seq[Dependency] - private def resolveRecursive(parents: List[Dependency] = List()): Tree = { - // diff removes circular dependencies - new Tree(this, (dependencies diff parents).map(_.resolveRecursive(this :: parents))) - } - private def linearize(deps: Seq[Dependency]): Seq[Dependency] = // Order is important here in order to generate the correct lineraized dependency order for EarlyDependencies // (and maybe this as well in case we want to get rid of MultiClassLoader) |