Remove redundant overload of Array<T>.plus(Array<T>)

It's covered by `Array<T>.plus(Array<out T>)`
This commit is contained in:
Ilya Gorbunov
2018-12-28 04:20:49 +03:00
committed by Vasily Levchenko
parent 1a4e1d7f55
commit cfa7c12413
-10
View File
@@ -88,13 +88,3 @@ private class IteratorImpl<T>(val collection: Array<T>) : Iterator<T> {
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 <T> Array<T>.plus(elements: Array<T>): Array<T> {
val result = copyOfUninitializedElements(this.size + elements.size)
elements.copyRangeTo(result, 0, elements.size, this.size)
return result
}