Skip to content

Commit 26bbf37

Browse files
committed
Remove deprecated functions
1 parent fae4678 commit 26bbf37

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [Unreleased]
4+
### Removed
5+
- kotlin-codepoints-deluxe
6+
- Removed deprecated `CharSequence.codePointIterator(startIndex, endIndex)`.
7+
- Removed deprecated `CodePointIterator` constructor.
8+
39
## [0.10.0] - 2025-05-20
410
### Deprecated
511
- kotlin-codepoints-deluxe

kotlin-codepoints-deluxe/src/commonMain/kotlin/CharSequenceExtensions.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ fun CharSequence.codePointIterator(): CodePointIterator {
5454
return CodePointIterator(this)
5555
}
5656

57-
@Deprecated(
58-
message = "Call codePointIterator() on a sub-sequence instead",
59-
replaceWith = ReplaceWith("this.subSequence(startIndex, endIndex).codePointIterator()")
60-
)
61-
fun CharSequence.codePointIterator(startIndex: Int = 0, endIndex: Int = length): CodePointIterator {
62-
return this.subSequence(startIndex, endIndex).codePointIterator()
63-
}
64-
6557
/**
6658
* Performs the given [action] for each code point in this character sequence.
6759
*/

kotlin-codepoints-deluxe/src/commonMain/kotlin/CodePointSequence.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ value class CodePointSequence(private val text: CharSequence) : Sequence<CodePoi
1616
* Iterator for [CodePoint]s in the given [CharSequence].
1717
*/
1818
class CodePointIterator internal constructor(private val text: CharSequence) : Iterator<CodePoint> {
19-
20-
@Deprecated(
21-
message = "Call CharSequence.codePointIterator() on a sub-sequence instead",
22-
replaceWith = ReplaceWith("text.subSequence(startIndex, endIndex).codePointIterator()"),
23-
)
24-
constructor(text: CharSequence, startIndex: Int, endIndex: Int) : this(text.subSequence(startIndex, endIndex))
25-
2619
private var index = 0
2720

2821
override fun hasNext(): Boolean {

0 commit comments

Comments
 (0)