From 42bd8df2ca31a1a3a10729824786f0a3e866ab37 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 29 Jan 2016 20:02:03 +0300 Subject: [PATCH] Drop CharSequence.get extension --- libraries/stdlib/src/kotlin/text/Strings.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libraries/stdlib/src/kotlin/text/Strings.kt b/libraries/stdlib/src/kotlin/text/Strings.kt index 470c5ce97a9..925dd1088e3 100644 --- a/libraries/stdlib/src/kotlin/text/Strings.kt +++ b/libraries/stdlib/src/kotlin/text/Strings.kt @@ -267,15 +267,6 @@ public val CharSequence.indices: IntRange public val CharSequence.lastIndex: Int get() = this.length - 1 -/** - * Returns a character at the given index in a [CharSequence]. Allows to use the - * index operator for working with character sequences: - * ``` - * val c = charSequence[5] - * ``` - */ -public operator fun CharSequence.get(index: Int): Char = this.get(index) - /** * Returns `true` if this CharSequence has Unicode surrogate pair at the specified [index]. */