diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-04-16 22:01:52 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-04-21 13:05:28 +0200 |
commit | 0ce81c855fc8c12623ae49f1cfa6e1fb255c872a (patch) | |
tree | b5cab1ab8219c7ed473f6cb2a960bdf39f0cf508 | |
parent | ec33ad00b47ac75b40369725e8d5cf197f313458 (diff) | |
download | scala-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.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 8 |
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 */ |