Remove collectionsMax once again.

This commit is contained in:
Ilya Gorbunov
2016-11-17 19:26:48 +03:00
parent 0dbaf2a605
commit ac2c2aa959
-16
View File
@@ -383,22 +383,6 @@ Kotlin.print = function (s) {
Kotlin.out.print(s);
};
Kotlin.collectionsMax = function (c, comp) {
if (c.isEmpty()) {
//TODO: which exception?
throw new Error();
}
var it = c.iterator();
var max = it.next();
while (it.hasNext()) {
var el = it.next();
if (comp.compare(max, el) < 0) {
max = el;
}
}
return max;
};
Kotlin.collectionsSort = function (mutableList, comparator) {
var boundComparator = void 0;
if (comparator !== void 0) {