Introduce Common protected function AbstractMutableList.removeRange #KT-57151

This commit is contained in:
Abduqodiri Qurbonzoda
2024-01-30 16:01:04 +02:00
committed by Space Team
parent f84fa29fef
commit 240a423bed
4 changed files with 11 additions and 2 deletions
@@ -81,7 +81,7 @@ public actual abstract class AbstractMutableList<E> protected actual constructor
/**
* Removes the range of elements from this list starting from [fromIndex] and ending with but not including [toIndex].
*/
protected open fun removeRange(fromIndex: Int, toIndex: Int) {
protected actual open fun removeRange(fromIndex: Int, toIndex: Int) {
val iterator = listIterator(fromIndex)
repeat(toIndex - fromIndex) {
iterator.next()