summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/Stream.scala
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2015-07-16 08:25:54 -0400
committerSeth Tisue <seth@tisue.net>2015-07-21 15:05:35 -0400
commit1408162d1b7c3da84bfcb7cf2a0d2884c931bea8 (patch)
tree935ba337a4c7fb0020bc3d40de18fcdc8b9d744f /src/library/scala/collection/immutable/Stream.scala
parent100a234882a86a249ebe586b4e75fede58c098c3 (diff)
downloadscala-1408162d1b7c3da84bfcb7cf2a0d2884c931bea8.tar.gz
scala-1408162d1b7c3da84bfcb7cf2a0d2884c931bea8.tar.bz2
scala-1408162d1b7c3da84bfcb7cf2a0d2884c931bea8.zip
remove legacy bincompat stuff in Predef.scala, Stream.scala
it was only there to preserve binary compatibility within the 2.11.x series includes updated partest, since the old partest ran afoul of the Stream change
Diffstat (limited to 'src/library/scala/collection/immutable/Stream.scala')
-rw-r--r--src/library/scala/collection/immutable/Stream.scala15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/library/scala/collection/immutable/Stream.scala b/src/library/scala/collection/immutable/Stream.scala
index 6c5b10e73b..1d0d40a1d8 100644
--- a/src/library/scala/collection/immutable/Stream.scala
+++ b/src/library/scala/collection/immutable/Stream.scala
@@ -509,21 +509,6 @@ self =>
else Stream.Empty
}
- /** Returns all the elements of this `Stream` that satisfy the predicate `p`
- * in a new `Stream` - i.e., it is still a lazy data structure. The order of
- * the elements is preserved
- *
- * @param p the predicate used to filter the stream.
- * @return the elements of this stream satisfying `p`.
- *
- * @example {{{
- * $naturalsEx
- * naturalsFrom(1) 10 } filter { _ % 5 == 0 } take 10 mkString(", ")
- * // produces
- * }}}
- */
- override def filter(p: A => Boolean): Stream[A] = filterImpl(p, isFlipped = false) // This override is only left in 2.11 because of binary compatibility, see PR #3925
-
/** A FilterMonadic which allows GC of the head of stream during processing */
@noinline // Workaround SI-9137, see https://github.com/scala/scala/pull/4284#issuecomment-73180791
override final def withFilter(p: A => Boolean): FilterMonadic[A, Stream[A]] = new Stream.StreamWithFilter(this, p)