summaryrefslogtreecommitdiff
path: root/src/intellij
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-02-12 15:30:50 -0800
committerJames Iry <jamesiry@gmail.com>2013-02-13 08:19:42 -0800
commit39037798c94e6e862f39dacffc5e65bb08b78d6a (patch)
tree57f5c17fa512ed1e07801f48d5c44ecd497617ea /src/intellij
parent62bc99d3b20a7b37a977b19a6202cdac474eb5f6 (diff)
downloadscala-39037798c94e6e862f39dacffc5e65bb08b78d6a.tar.gz
scala-39037798c94e6e862f39dacffc5e65bb08b78d6a.tar.bz2
scala-39037798c94e6e862f39dacffc5e65bb08b78d6a.zip
SI-6642 Refactor mutable.TreeSet to use RedBlackTree instead of AVL
There was no reason to have mutable.TreeSet use AVLTree while immutable.TreeSet and immutable.HashSet used RedBlackTree. In particular that would have meant duplicating the iteratorFrom logic unnecessarily. So this commit refactors mutable.TreeSet to use RedBlackTree for everything, including iteratorFrom. It also adds a test to make sure TreeSet works as expected. AVLTree should be dead code since it's private[scala.collection.mutable] and only used by mutable.TreeSet, but to be safe it's only deprecated in this commit.
Diffstat (limited to 'src/intellij')
0 files changed, 0 insertions, 0 deletions