Postpone introducing common StringBuilder.capacity() function

Its support complicates JS StringBuilder implementation with no actual
performance improvements. Benefits of having capacity() function
in common code are also not completely clear.

Relates to KT-33069
#KT-40168
This commit is contained in:
Ilya Gorbunov
2020-07-09 20:35:46 +03:00
parent 097e0fb46c
commit 20683d62a6
5 changed files with 17 additions and 21 deletions
+2 -2
View File
@@ -1275,8 +1275,8 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
public final fun appendRange(value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
@kotlin.SinceKotlin(version = "1.4")
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
@kotlin.SinceKotlin(version = "1.3")
@kotlin.Deprecated(level = DeprecationLevel.ERROR, message = "Obtaining StringBuilder capacity is not supported in JS and common code.")
public final fun capacity(): kotlin.Int
@kotlin.SinceKotlin(version = "1.3")