summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/CleanUp.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-23 13:55:41 -0700
committerPaul Phillips <paulp@improving.org>2013-04-23 15:39:21 -0700
commit1da48a45b62879c2bd2904342eeff7e6e568350a (patch)
treecdf5f7b1903d1523cb0391bda745bc9ca29836da /src/compiler/scala/tools/nsc/transform/CleanUp.scala
parent0f1a004048089dc2f51c5e1a11419072102b896b (diff)
downloadscala-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.scala13
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()