diff --git a/akka-actor/src/main/scala/akka/util/ByteIterator.scala b/akka-actor/src/main/scala/akka/util/ByteIterator.scala index a2bc455c38..5de9f5f333 100644 --- a/akka-actor/src/main/scala/akka/util/ByteIterator.scala +++ b/akka-actor/src/main/scala/akka/util/ByteIterator.scala @@ -31,13 +31,6 @@ object ByteIterator { class ByteArrayIterator private (private var array: Array[Byte], private var from: Int, private var until: Int) extends ByteIterator { iterator ⇒ - final def isIdenticalTo(that: Iterator[Byte]): Boolean = that match { - case that: ByteArrayIterator ⇒ - ((this.array) eq (that.array)) && - ((this.from) == (that.from)) && ((this.until) == (that.until)) - case _ ⇒ false - } - @inline final def len: Int = until - from @inline final def hasNext: Boolean = from < until @@ -198,8 +191,6 @@ object ByteIterator { @inline private def dropCurrent(): Unit = { iterators = iterators.tail } @inline def clear(): Unit = { iterators = MultiByteArrayIterator.empty.iterators } - final def isIdenticalTo(that: Iterator[Byte]): Boolean = false - @inline final def hasNext: Boolean = current.hasNext @inline final def head: Byte = current.head @@ -391,8 +382,6 @@ object ByteIterator { */ abstract class ByteIterator extends BufferedIterator[Byte] { - def isIdenticalTo(that: Iterator[Byte]): Boolean - def len: Int def head: Byte