From cfa7c124134dc3dab78579271f91dddf42b45434 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 28 Dec 2018 04:20:49 +0300 Subject: [PATCH] Remove redundant overload of Array.plus(Array) It's covered by `Array.plus(Array)` --- runtime/src/main/kotlin/kotlin/Array.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/runtime/src/main/kotlin/kotlin/Array.kt b/runtime/src/main/kotlin/kotlin/Array.kt index bc59788a580..f83e7ce5c8c 100644 --- a/runtime/src/main/kotlin/kotlin/Array.kt +++ b/runtime/src/main/kotlin/kotlin/Array.kt @@ -88,13 +88,3 @@ private class IteratorImpl(val collection: Array) : Iterator { return index < collection.size } } - -/** - * Returns an array containing all elements of the original array and then all elements of the given [elements] array. - */ -@kotlin.internal.InlineOnly -public inline operator fun Array.plus(elements: Array): Array { - val result = copyOfUninitializedElements(this.size + elements.size) - elements.copyRangeTo(result, 0, elements.size, this.size) - return result -}