Skip to content
Browse files

Remove commented out code

  • Loading branch information...
1 parent 53130d2 commit 096a08e3bddc16166c4c32a759bf6eec0638bd41 @Blaisorblade Blaisorblade committed
Showing with 0 additions and 17 deletions.
  1. +0 −17 src/library/scala/collection/immutable/Stream.scala
View
17 src/library/scala/collection/immutable/Stream.scala
@@ -493,15 +493,6 @@ self =>
throw new RuntimeException()
}
- /*
- def tailMap = asStream[B](tail withFilter p map f)
- if (isStreamBuilder(bf)) asThat(
- if (isEmpty) Stream.Empty
- else if (p(head)) cons(f(head), tailMap)
- else tailMap
- //XXX Alternative: what about having a Stream.step constructor?
- )
- */
if (isStreamBuilder(bf)) asThat(tailMap(Stream.this))
else super.map(f)(bf)
}
@@ -521,14 +512,6 @@ self =>
throw new RuntimeException()
}
- /*
- def tailFlatMap = asStream[B](tail withFilter p flatMap f)
- if (isStreamBuilder(bf)) asThat(
- if (isEmpty) Stream.Empty
- else if (p(head)) f(head).toStream append tailFlatMap
- else tailFlatMap
- )
- */
if (isStreamBuilder(bf)) asThat(tailFlatMap(Stream.this))
else super.flatMap(f)(bf)
}

0 comments on commit 096a08e

Please sign in to comment.
Something went wrong with that request. Please try again.