Skip to content

Commit

Permalink
SI-7345 remove unused methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed Apr 21, 2013
1 parent 510ebec commit bba9d3d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/compiler/scala/tools/nsc/typechecker/Contexts.scala
Expand Up @@ -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

Expand All @@ -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 */
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit bba9d3d

Please sign in to comment.