Remove Common StringBuilder.append/insert(Byte/Short) members #KT-63341

This commit is contained in:
Abduqodiri Qurbonzoda
2023-11-10 16:11:04 +02:00
parent c002af6365
commit db6a662631
3 changed files with 8 additions and 48 deletions
@@ -69,24 +69,6 @@ public expect class StringBuilder : Appendable, CharSequence {
@SinceKotlin("1.3")
public fun append(value: Boolean): StringBuilder
/**
* Appends the string representation of the specified byte [value] to this string builder and returns this instance.
*
* The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method,
* and then that string was appended to this string builder.
*/
@SinceKotlin("1.9")
public fun append(value: Byte): StringBuilder
/**
* Appends the string representation of the specified short [value] to this string builder and returns this instance.
*
* The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method,
* and then that string was appended to this string builder.
*/
@SinceKotlin("1.9")
public fun append(value: Short): StringBuilder
/**
* Appends the string representation of the specified int [value] to this string builder and returns this instance.
*
@@ -204,28 +186,6 @@ public expect class StringBuilder : Appendable, CharSequence {
@SinceKotlin("1.4")
public fun insert(index: Int, value: Boolean): StringBuilder
/**
* Inserts the string representation of the specified byte [value] into this string builder at the specified [index] and returns this instance.
*
* The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method,
* and then that string was inserted into this string builder at the specified [index].
*
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
*/
@SinceKotlin("1.9")
public fun insert(index: Int, value: Byte): StringBuilder
/**
* Inserts the string representation of the specified short [value] into this string builder at the specified [index] and returns this instance.
*
* The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method,
* and then that string was inserted into this string builder at the specified [index].
*
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder.
*/
@SinceKotlin("1.9")
public fun insert(index: Int, value: Short): StringBuilder
/**
* Inserts the string representation of the specified int [value] into this string builder at the specified [index] and returns this instance.
*