summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-06-10 13:34:35 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-06-10 13:34:35 +0000
commit1164ab879a679085662db70a1f6ecdf035a196ef (patch)
tree9fe340987d73af46cfb7007f1fce2c9e11403b2b /src/compiler/scala/tools/nsc/symtab/classfile/Pickler.scala
parentf85a6749de6502d4138b4f6013286088c330d74f (diff)
downloadscala-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.scala20
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.