diff options
Diffstat (limited to 'sources/scala/tools/nsc/Phase.scala')
-rw-r--r-- | sources/scala/tools/nsc/Phase.scala | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sources/scala/tools/nsc/Phase.scala b/sources/scala/tools/nsc/Phase.scala index d344e8486a..9fd2322845 100644 --- a/sources/scala/tools/nsc/Phase.scala +++ b/sources/scala/tools/nsc/Phase.scala @@ -8,7 +8,7 @@ package scala.tools.nsc; abstract class Phase(val prev: Phase) { val id: int = if (prev == null) 0 else prev.id + 1; - private var nx: Phase = NoPhase; + private var nx: Phase = this; if (prev != null) prev.nx = this; def next: Phase = nx; @@ -20,17 +20,6 @@ abstract class Phase(val prev: Phase) { def run: unit; override def toString() = name; - - //commented out, just use `id' to compare. - /* - def >= (other: Phase): Boolean = { - this == other || prev >= other - } - */ - - // def check(units: List[CompilationUnit]): unit = - // for (val unit <- units; val checker <- checkers) checker.traverse(unit); // def checkers: List[Checker] = List(); - } |