diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-06-10 13:34:35 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-06-10 13:34:35 +0000 |
commit | 1164ab879a679085662db70a1f6ecdf035a196ef (patch) | |
tree | 9fe340987d73af46cfb7007f1fce2c9e11403b2b /src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala | |
parent | f85a6749de6502d4138b4f6013286088c330d74f (diff) | |
download | scala-1164ab879a679085662db70a1f6ecdf035a196ef.tar.gz scala-1164ab879a679085662db70a1f6ecdf035a196ef.tar.bz2 scala-1164ab879a679085662db70a1f6ecdf035a196ef.zip |
removed debug code (revert r17767 and r17780)
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala index a44270468b..9cd9e9529d 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala @@ -70,7 +70,7 @@ abstract class Pickler extends SubComponent { import scala.collection.mutable.LinkedHashMap private var entries = new Array[AnyRef](256) private var ep = 0 - private val index = new LinkedHashMap[AnyRef, (Int, Int)] + private val index = new LinkedHashMap[AnyRef, Int] /** Is symbol an existentially bound variable with a package as owner? * Such symbols should be treated as if they were local. @@ -113,12 +113,7 @@ abstract class Pickler extends SubComponent { entries = entries1 } entries(ep) = entry - index(entry) = (ep, entry.hashCode()) // debug NoSuchElementException - // debug NoSuchElementException - if (index.get(entry) == None) { - println("could not add entry: "+ entry) - index.printHashTable(entry.hashCode()) - } + index(entry) = ep ep = ep + 1 true } @@ -480,16 +475,7 @@ abstract class Pickler extends SubComponent { * * @param ref ... */ - private def writeRef(ref: AnyRef) { - try { - writeNat(index(ref)._1) // debug NoSuchElementException - } catch { - case e: java.util.NoSuchElementException => - println("entry not found: "+ ref) - index.printHashTable(ref.hashCode()) - throw e - } - } + private def writeRef(ref: AnyRef) { writeNat(index(ref)) } private def writeRefs(refs: List[AnyRef]) { refs foreach writeRef } /** Write name, owner, flags, and info of a symbol. |