diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-03 04:11:32 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-03 04:11:32 +0000 |
commit | 2c59afc2c15ddcd124fd175eb30c0cdf9d98463b (patch) | |
tree | 591c9315baea0f711da69c6cd7693b4952286705 /src/compiler/scala/tools/nsc/backend/icode/Printers.scala | |
parent | 2fefb37220f82300e2aa44442f1a42261d65e359 (diff) | |
download | scala-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/Printers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/Printers.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/Printers.scala b/src/compiler/scala/tools/nsc/backend/icode/Printers.scala index a9ec70d390..7b76183c58 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/Printers.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/Printers.scala @@ -58,9 +58,7 @@ trait Printers { self: ICodes => case x :: xs => pr(x); print(sep); printList(pr)(xs, sep) } - private var clazz: IClass = _ def printClass(cls: IClass) { - this.clazz = cls; print(cls.symbol.toString()); print(" extends "); printList(cls.symbol.info.parents, ", "); indent; println(" {"); |