Permalink
Browse files

Removed headOption from ReadAheadIterator

Implemented headOption in scala 2.12.0-RC1 retains same functionality and current
implementation will not compile. Removing retains the same functionality.
  • Loading branch information...
1 parent 56877e9 commit fb9a496f2ebad530ded58e5c78ee8225ec065ea4 @ChristopherDavenport ChristopherDavenport committed Jul 21, 2016
Showing with 0 additions and 6 deletions.
  1. +0 −6 slick/src/main/scala/slick/util/ReadAheadIterator.scala
@@ -23,12 +23,6 @@ trait ReadAheadIterator[+T] extends BufferedIterator[T] {
else throw new NoSuchElementException("head on empty iterator")
}
- def headOption: Option[T] = {
- update()
- if(state == 1) Some(cached)
- else None
- }
-
private[this] def update() {
if(state == 0) {
cached = fetchNext()

0 comments on commit fb9a496

Please sign in to comment.