diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-23 13:55:41 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-23 15:39:21 -0700 |
commit | 1da48a45b62879c2bd2904342eeff7e6e568350a (patch) | |
tree | cdf5f7b1903d1523cb0391bda745bc9ca29836da /src/compiler/scala/tools/nsc/transform/CleanUp.scala | |
parent | 0f1a004048089dc2f51c5e1a11419072102b896b (diff) | |
download | scala-1da48a45b62879c2bd2904342eeff7e6e568350a.tar.gz scala-1da48a45b62879c2bd2904342eeff7e6e568350a.tar.bz2 scala-1da48a45b62879c2bd2904342eeff7e6e568350a.zip |
Eliminate a pile of -Xlint warnings.
Some unused private code, unused imports, and points where
an extra pair of parentheses is necessary for scalac to have
confidence in our intentions.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/CleanUp.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/CleanUp.scala | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala index 2ece06c801..d498949b03 100644 --- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala +++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala @@ -32,19 +32,6 @@ abstract class CleanUp extends Transform with ast.TreeDSL { newStaticInits.clear() symbolsStoredAsStatic.clear() } - private def savingStatics[T](body: => T): T = { - val savedNewStaticMembers : mutable.Buffer[Tree] = newStaticMembers.clone() - val savedNewStaticInits : mutable.Buffer[Tree] = newStaticInits.clone() - val savedSymbolsStoredAsStatic : mutable.Map[String, Symbol] = symbolsStoredAsStatic.clone() - val result = body - - clearStatics() - newStaticMembers ++= savedNewStaticMembers - newStaticInits ++= savedNewStaticInits - symbolsStoredAsStatic ++= savedSymbolsStoredAsStatic - - result - } private def transformTemplate(tree: Tree) = { val Template(_, _, body) = tree clearStatics() |