diff --git a/runtime/src/main/kotlin/kotlin/Array.kt b/runtime/src/main/kotlin/kotlin/Array.kt index 737486aed68..64c967594d1 100644 --- a/runtime/src/main/kotlin/kotlin/Array.kt +++ b/runtime/src/main/kotlin/kotlin/Array.kt @@ -47,10 +47,6 @@ public final class Array { return IteratorImpl(this) } - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } - // Konan-specific. @SymbolName("Kotlin_Array_getArrayLength") external private fun getArrayLength(): Int diff --git a/runtime/src/main/kotlin/kotlin/Arrays.kt b/runtime/src/main/kotlin/kotlin/Arrays.kt index a29bf45c08c..ec785784b3f 100644 --- a/runtime/src/main/kotlin/kotlin/Arrays.kt +++ b/runtime/src/main/kotlin/kotlin/Arrays.kt @@ -64,10 +64,6 @@ public final class ByteArray { public operator fun iterator(): ByteIterator { return ByteIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } // TODO: replace with generics, once implemented. @@ -120,10 +116,6 @@ public final class CharArray { public operator fun iterator(): kotlin.collections.CharIterator { return CharIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class CharIteratorImpl(val collection: CharArray) : CharIterator() { @@ -175,10 +167,6 @@ public final class ShortArray { public operator fun iterator(): kotlin.collections.ShortIterator { return ShortIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class ShortIteratorImpl(val collection: ShortArray) : ShortIterator() { @@ -230,10 +218,6 @@ public final class IntArray { public operator fun iterator(): kotlin.collections.IntIterator { return IntIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class IntIteratorImpl(val collection: IntArray) : IntIterator() { @@ -285,10 +269,6 @@ public final class LongArray { public operator fun iterator(): kotlin.collections.LongIterator { return LongIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class LongIteratorImpl(val collection: LongArray) : LongIterator() { @@ -340,10 +320,6 @@ public final class FloatArray { public operator fun iterator(): kotlin.collections.FloatIterator { return FloatIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class FloatIteratorImpl(val collection: FloatArray) : FloatIterator() { @@ -391,10 +367,6 @@ public final class DoubleArray { public operator fun iterator(): kotlin.collections.DoubleIterator { return DoubleIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class DoubleIteratorImpl(val collection: DoubleArray) : DoubleIterator() { @@ -442,10 +414,6 @@ public final class BooleanArray { public operator fun iterator(): kotlin.collections.BooleanIterator { return BooleanIteratorImpl(this) } - - public override fun toString(): String { - return this.joinToString(separator = ", ", prefix = "[", postfix = "]") - } } private class BooleanIteratorImpl(val collection: BooleanArray) : BooleanIterator() {