From 9f63b0e1362148d67715ae4458bd2ae3181c6464 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Fri, 15 May 2015 14:16:52 +0200 Subject: [PATCH] Do not depend on scala.collection.generic.Clearable in dotty. Makes bootstrap easier. --- src/dotty/tools/dotc/util/HashSet.scala | 2 +- src/dotty/tools/dotc/util/Set.scala | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dotty/tools/dotc/util/HashSet.scala b/src/dotty/tools/dotc/util/HashSet.scala index 1c132378b810..ff470ef5dc26 100644 --- a/src/dotty/tools/dotc/util/HashSet.scala +++ b/src/dotty/tools/dotc/util/HashSet.scala @@ -2,7 +2,7 @@ package dotty.tools.dotc.util /** A hash set that allows some privileged protected access to its internals */ -class HashSet[T >: Null <: AnyRef](initialCapacity: Int, loadFactor: Float = 0.25f) extends Set[T] with scala.collection.generic.Clearable { +class HashSet[T >: Null <: AnyRef](initialCapacity: Int, loadFactor: Float = 0.25f) extends Set[T] { private var used: Int = _ private var limit: Int = _ private var table: Array[AnyRef] = _ diff --git a/src/dotty/tools/dotc/util/Set.scala b/src/dotty/tools/dotc/util/Set.scala index 231d862f97b7..3e906c6a87fb 100644 --- a/src/dotty/tools/dotc/util/Set.scala +++ b/src/dotty/tools/dotc/util/Set.scala @@ -23,4 +23,5 @@ abstract class Set[T >: Null] { def toList = iterator.toList + def clear: Unit }