File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
library/src/scala/collection/immutable Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -488,21 +488,6 @@ object HashSet extends ImmutableSetFactory[HashSet] {
488
488
override def iterator : Iterator [A ] = ks.iterator
489
489
override def foreach [U ](f : A => U ): Unit = ks.foreach(f)
490
490
491
- private def writeObject (out : java.io.ObjectOutputStream ) {
492
- // this cannot work - reading things in might produce different
493
- // hash codes and remove the collision. however this is never called
494
- // because no references to this class are ever handed out to client code
495
- // and HashTrieSet serialization takes care of the situation
496
- sys.error(" cannot serialize an immutable.HashSet where all items have the same 32-bit hash code" )
497
- // out.writeObject(kvs)
498
- }
499
-
500
- private def readObject (in : java.io.ObjectInputStream ) {
501
- sys.error(" cannot deserialize an immutable.HashSet where all items have the same 32-bit hash code" )
502
- // kvs = in.readObject().asInstanceOf[ListSet[A]]
503
- // hash = computeHash(kvs.)
504
- }
505
-
506
491
}
507
492
508
493
/**
You can’t perform that action at this time.
0 commit comments