Do not expose internal copyOfUninitializedElements and copyOfNulls

This commit is contained in:
Ilya Gorbunov
2018-12-28 05:42:05 +03:00
parent 2e9497f8f8
commit 640699e076
@@ -775,7 +775,6 @@ object ArrayOps : TemplateGroupBase() {
}
}
on(Platform.Native) {
inlineOnly()
body {
"""
checkCopyOfRangeArguments(fromIndex, toIndex, size)
@@ -792,7 +791,6 @@ object ArrayOps : TemplateGroupBase() {
platforms(Platform.Native)
} builder {
visibility("internal")
annotation("@PublishedApi")
returns("SELF")
doc {
"""
@@ -810,7 +808,6 @@ object ArrayOps : TemplateGroupBase() {
platforms(Platform.Native)
} builder {
visibility("internal")
annotation("@PublishedApi")
returns("SELF")
doc {
"""
@@ -876,7 +873,6 @@ object ArrayOps : TemplateGroupBase() {
}
}
on(Platform.Native) {
inlineOnly()
body { "return this.copyOfUninitializedElements(size)" }
}
}
@@ -919,7 +915,6 @@ object ArrayOps : TemplateGroupBase() {
body { newSizeCheck + "\n" + body }
}
on(Platform.Native) {
inlineOnly()
body { "return this.copyOfUninitializedElements(newSize)" }
}
}
@@ -940,7 +935,6 @@ object ArrayOps : TemplateGroupBase() {
suppress("NO_ACTUAL_FOR_EXPECT") // TODO: KT-21937
}
on(Platform.Native) {
inlineOnly()
body { "return this.copyOfNulls(newSize)" }
}
}