diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-01 12:05:13 +1100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-01 12:05:13 +1100 |
commit | 12d11cb8c2c38f7eb1c50fb577717c75f6895f00 (patch) | |
tree | 4569b7723c5f19d2ad1ae9ea785a0d6d6ea35615 /compiler/src/dotty/tools/dotc/core/Phases.scala | |
parent | 62810e0ba681224c8288470a27e816b05769f01a (diff) | |
download | dotty-12d11cb8c2c38f7eb1c50fb577717c75f6895f00.tar.gz dotty-12d11cb8c2c38f7eb1c50fb577717c75f6895f00.tar.bz2 dotty-12d11cb8c2c38f7eb1c50fb577717c75f6895f00.zip |
Drop atPhaseNotLaterThanTyper
It was used only once and its body is almost as short as the name,
so no need to have a separate method.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Phases.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Phases.scala | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Phases.scala b/compiler/src/dotty/tools/dotc/core/Phases.scala index 6a53e1b30..d217afed8 100644 --- a/compiler/src/dotty/tools/dotc/core/Phases.scala +++ b/compiler/src/dotty/tools/dotc/core/Phases.scala @@ -40,9 +40,6 @@ trait Phases { def atPhaseNotLaterThan[T](limit: Phase)(op: Context => T): T = if (!limit.exists || phase <= limit) op(this) else atPhase(limit)(op) - def atPhaseNotLaterThanTyper[T](op: Context => T): T = - atPhaseNotLaterThan(base.typerPhase)(op) - def isAfterTyper: Boolean = base.isAfterTyper(phase) } |