summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-04-15 13:38:27 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-04-21 13:05:27 +0200
commitbba9d3d468a4be6a867aa4494375fcc108c8b97e (patch)
treeeceda0d846101cd1b196299be20b6ec6453faf12 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parent510ebeca9e55b27bbe6e6c54bf0ea6ea294ee7be (diff)
downloadscala-bba9d3d468a4be6a867aa4494375fcc108c8b97e.tar.gz
scala-bba9d3d468a4be6a867aa4494375fcc108c8b97e.tar.bz2
scala-bba9d3d468a4be6a867aa4494375fcc108c8b97e.zip
SI-7345 remove unused methods.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index 4fc9cde070..5bbb96ccd2 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -228,9 +228,7 @@ trait Contexts { self: Analyzer =>
def restoreReportBuffer(other: ReportBuffer) = _reportBuffer = other
/** The first error, if any, in the report buffer */
- def firstError: Option[AbsTypeError] = reportBuffer.firstErrorOpt
- /** The first warning, if any, in the report buffer */
- def firstWarning: Option[(Position, String)] = reportBuffer.firstWarningOpt
+ def firstError: Option[AbsTypeError] = reportBuffer.firstError
/** Does the report buffer contain any errors? */
def hasErrors = reportBuffer.hasErrors
@@ -249,8 +247,6 @@ trait Contexts { self: Analyzer =>
devWarning("When entering the buffer state, context has to be clean. Current buffer: " + reportBuffer.errors)
}
- // TODO SI-7345 refactor this part of the API.
-
/** Append the given errors to the report buffer */
def updateBuffer(errors: Traversable[AbsTypeError]) = reportBuffer ++= errors
/** Clear all errors from the report buffer */
@@ -1106,11 +1102,8 @@ trait Contexts { self: Analyzer =>
this
}
- def hasErrors = errorBuffer.nonEmpty
- def hasWarnings = warningBuffer.nonEmpty
- def firstError = errorBuffer.head
- def firstErrorOpt = errorBuffer.headOption
- def firstWarningOpt = warningBuffer.headOption
+ def hasErrors = errorBuffer.nonEmpty
+ def firstError = errorBuffer.headOption
}
class ImportInfo(val tree: Import, val depth: Int) {