summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-03 04:11:32 +0000
committerPaul Phillips <paulp@improving.org>2010-10-03 04:11:32 +0000
commit2c59afc2c15ddcd124fd175eb30c0cdf9d98463b (patch)
tree591c9315baea0f711da69c6cd7693b4952286705 /src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala
parent2fefb37220f82300e2aa44442f1a42261d65e359 (diff)
downloadscala-2c59afc2c15ddcd124fd175eb30c0cdf9d98463b.tar.gz
scala-2c59afc2c15ddcd124fd175eb30c0cdf9d98463b.tar.bz2
scala-2c59afc2c15ddcd124fd175eb30c0cdf9d98463b.zip
Removes a bunch of private functions which are ...
Removes a bunch of private functions which are never called. While based on the nature of "private" one can generally feel pretty good that such a thing is safe, there is always a chance the author had some future use in mind. On that note I draw your attention in particular to: (martin) Typers#stabilizedType: it "sounds" important, but most of it has been commented out since 2007 and the little stub part is a never called private. (iulian) SpecializeTypes#makeTypeArguments: similarly sounds like a cornerstone of a transformation until one notices it isn't used. Unused methods are "attractive nuisances" for anyone (like myself) who has to figure out how the compiler works by studying the compiler, for reasons which are no doubt obvious. No review except as noted.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala b/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala
index bdcee1cba7..c09851fa86 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala
@@ -88,8 +88,6 @@ trait BasicBlocks {
*/
private var instructionList: List[Instruction] = Nil
- private var _lastInstruction: Instruction = null
-
private var instrs: Array[Instruction] = _
override def toList: List[Instruction] =
@@ -266,8 +264,7 @@ trait BasicBlocks {
}
else {
instr.setPos(pos)
- instructionList = instr :: instructionList
- _lastInstruction = instr
+ instructionList ::= instr
}
}