From d6798ac2ab92a8414678fc075c4381e0bc51f438 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 17 Jul 2009 19:07:55 +0000 Subject: Removed Vector's indexOfSeq method in favor of ... Removed Vector's indexOfSeq method in favor of the superclass implementation, which already discriminates based on hasDefiniteSize. --- src/library/scala/collection/generic/VectorTemplate.scala | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/library') diff --git a/src/library/scala/collection/generic/VectorTemplate.scala b/src/library/scala/collection/generic/VectorTemplate.scala index f8be15016a..96e80276b8 100644 --- a/src/library/scala/collection/generic/VectorTemplate.scala +++ b/src/library/scala/collection/generic/VectorTemplate.scala @@ -257,13 +257,6 @@ trait VectorTemplate[+A, +This <: VectorTemplate[A, This] with Vector[A]] extend super.endsWith(that) } - override def indexOfSeq[B >: A](that: Sequence[B]): Int = { - var i = 0 - val last = length - that.length - while (i <= last && !startsWith(that, i)) i += 1 - negLength(i) - } - override def equals(that: Any): Boolean = that match { case that1: Vector[a] => val len = this.length -- cgit v1.2.3