From f678918b86f0188c8340428bf376feb483c3103c Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Mon, 28 Jul 2014 21:24:52 +0400 Subject: [PATCH] Stdlib minor: Remove unused AbstractIterator#peek() --- libraries/stdlib/src/kotlin/collections/AbstractIterator.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libraries/stdlib/src/kotlin/collections/AbstractIterator.kt b/libraries/stdlib/src/kotlin/collections/AbstractIterator.kt index 1f0c07e8e3f..40752e3634d 100644 --- a/libraries/stdlib/src/kotlin/collections/AbstractIterator.kt +++ b/libraries/stdlib/src/kotlin/collections/AbstractIterator.kt @@ -35,12 +35,6 @@ public abstract class AbstractIterator: Iterator { 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();