JS: drop Collections.max

This commit is contained in:
Alexander Udalov
2016-11-02 12:26:06 +03:00
parent 316fbd820b
commit e8fecea871
3 changed files with 1 additions and 35 deletions
@@ -1,13 +1,6 @@
package java.util
import java.lang.*
import java.util.*
import kotlin.comparisons.*
public object Collections {
@Deprecated("Use collection.maxWith(comparator) instead.", ReplaceWith("col.maxWith(comp)"))
public fun <T> max(col: Collection<T>, comp: Comparator<in T>): T = java.util.max(col, comp)
@Deprecated("Use list.reverse() instead.", ReplaceWith("list.reverse()"))
public fun <T> reverse(list: MutableList<T>): Unit {
val size = list.size
@@ -19,6 +12,3 @@ public object Collections {
}
}
}
@library("collectionsMax")
private fun <T> max(col: Collection<T>, comp: Comparator<in T>): T = noImpl