diff options
author | Eugene Vigdorchik <eugene.vigdorchik@gmail.com> | 2013-03-04 19:10:49 +0400 |
---|---|---|
committer | Eugene Vigdorchik <eugene.vigdorchik@gmail.com> | 2013-03-05 12:19:59 +0400 |
commit | 1666f6e3f4f3959a489007d830484247c1384a74 (patch) | |
tree | 808c8f800688bd720cae12402fb924607622bd5b /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | ce32c1af462de7d7c6b90efd56217e202a18d1e6 (diff) | |
download | scala-1666f6e3f4f3959a489007d830484247c1384a74.tar.gz scala-1666f6e3f4f3959a489007d830484247c1384a74.tar.bz2 scala-1666f6e3f4f3959a489007d830484247c1384a74.zip |
Since the problem in SI-6758 is fixed, it's ok to move checking for unused imports to Analyzer. This allows the check to be used in the IDE.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index af484a47e2..20fc44bed1 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -486,6 +486,8 @@ trait TypeDiagnostics { } def apply(unit: CompilationUnit) = { + warnUnusedImports(unit) + val p = new UnusedPrivates p traverse unit.body val unused = p.unusedTerms |