summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-04-16 22:01:52 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-04-21 13:05:28 +0200
commit0ce81c855fc8c12623ae49f1cfa6e1fb255c872a (patch)
treeb5cab1ab8219c7ed473f6cb2a960bdf39f0cf508 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parentec33ad00b47ac75b40369725e8d5cf197f313458 (diff)
downloadscala-0ce81c855fc8c12623ae49f1cfa6e1fb255c872a.tar.gz
scala-0ce81c855fc8c12623ae49f1cfa6e1fb255c872a.tar.bz2
scala-0ce81c855fc8c12623ae49f1cfa6e1fb255c872a.zip
SI-7345 Remove unneeded warning.
According to Hubert, during normal operation we can start buffering errors in a context with existing errors. So the warning would be noisy.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index 64ea17ba29..dd43e22159 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -285,16 +285,10 @@ trait Contexts { self: Analyzer =>
def throwErrors = contextMode.inNone(ReportErrors | BufferErrors)
def setReportErrors(): Unit = set(enable = ReportErrors | AmbiguousErrors, disable = BufferErrors)
- def setBufferErrors(): Unit = {set(enable = BufferErrors, disable = ReportErrors | AmbiguousErrors); warnIfBufferNotClean()}
+ def setBufferErrors(): Unit = set(enable = BufferErrors, disable = ReportErrors | AmbiguousErrors)
def setThrowErrors(): Unit = this(ReportErrors | AmbiguousErrors | BufferErrors) = false
def setAmbiguousErrors(report: Boolean): Unit = this(AmbiguousErrors) = report
- // TODO SI-7345 According to Hubert, this warning will be noisy and is unneccessary.
- private def warnIfBufferNotClean() {
- if (!bufferErrors && hasErrors)
- devWarning("When entering the buffer state, context has to be clean. Current buffer: " + reportBuffer.errors)
- }
-
/** Append the given errors to the report buffer */
def updateBuffer(errors: Traversable[AbsTypeError]) = reportBuffer ++= errors
/** Clear all errors from the report buffer */