mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup [air]: drop unused function
GitOrigin-RevId: fd9be704cd78ce394079d1bd05912f4ee95833f2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f08e0b7915
commit
44c5295d6d
@@ -76,17 +76,6 @@ inline fun <T> Sequence<T>.mergedBy(crossinline selector: (T, T) -> Boolean): Se
|
||||
}
|
||||
}
|
||||
|
||||
fun <T> ListIterator<T>.backwards(): ListIterator<T> {
|
||||
return object : ListIterator<T> {
|
||||
override fun hasNext(): Boolean = this@backwards.hasPrevious()
|
||||
override fun hasPrevious(): Boolean = this@backwards.hasNext()
|
||||
override fun next(): T = this@backwards.previous()
|
||||
override fun previous(): T = this@backwards.next()
|
||||
override fun nextIndex(): Int = this@backwards.previousIndex()
|
||||
override fun previousIndex(): Int = this@backwards.nextIndex()
|
||||
}
|
||||
}
|
||||
|
||||
fun <K, V> Map<K, V>.merge(other: Map<K, V>, f: (K, V, V) -> V = { k, v1, v2 -> v2 }): Map<K, V> {
|
||||
val x = toMutableMap()
|
||||
other.forEach { (k, v) ->
|
||||
|
||||
Reference in New Issue
Block a user