Stdlib minor: Remove unused AbstractIterator#peek()

This commit is contained in:
Pavel V. Talanov
2014-07-28 21:24:52 +04:00
parent e4de6f5e31
commit f678918b86
@@ -35,12 +35,6 @@ public abstract class AbstractIterator<T>: Iterator<T> {
return nextValue as T
}
/** Returns the next element in the iteration without advancing the iteration */
fun peek(): T {
if (!hasNext()) throw NoSuchElementException()
return nextValue as T;
}
private fun tryToComputeNext(): Boolean {
state = State.Failed
computeNext();