Remove redundant @UseExperimental(ExperimentalStdlibApi) annotations

This commit is contained in:
Abduqodiri Qurbonzoda
2019-05-22 02:50:38 +03:00
committed by Nikolay Igotti
parent 1426a8309a
commit 06b0555807
2 changed files with 0 additions and 3 deletions
@@ -42,7 +42,6 @@ public fun ByteArray.stringFromUtf8OrThrow() : String {
* @throws [IllegalCharacterConversionException] if the input is invalid.
*/
@Deprecated("Use decodeToString instead", ReplaceWith("decodeToString(start, start + size, throwOnInvalidSequence = true)"))
@UseExperimental(ExperimentalStdlibApi::class)
public fun ByteArray.stringFromUtf8OrThrow(start: Int = 0, size: Int = this.size) : String {
checkBoundsIndexes(start, start + size, this.size)
try {
@@ -92,7 +91,6 @@ public fun String.toUtf8OrThrow() : ByteArray {
* @throws [IllegalCharacterConversionException] if the input is invalid.
*/
@Deprecated("Use encodeToByteArray instead", ReplaceWith("encodeToByteArray(start, start + size, throwOnInvalidSequence = true)"))
@UseExperimental(ExperimentalStdlibApi::class)
public fun String.toUtf8OrThrow(start: Int = 0, size: Int = this.length) : ByteArray {
checkBoundsIndexes(start, start + size, this.length)
try {
@@ -71,7 +71,6 @@ internal fun ThrowNotImplementedError(): Nothing {
@ExportForCppRuntime
internal fun ThrowCharacterCodingException(): Nothing {
@UseExperimental(ExperimentalStdlibApi::class)
throw CharacterCodingException()
}