From ac2c2aa959dbd41f437b826d1a9a4e9458edc642 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 17 Nov 2016 19:26:48 +0300 Subject: [PATCH] Remove collectionsMax once again. --- js/js.translator/testData/kotlin_lib.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/js/js.translator/testData/kotlin_lib.js b/js/js.translator/testData/kotlin_lib.js index 4f0b2b74b70..840569fa86f 100644 --- a/js/js.translator/testData/kotlin_lib.js +++ b/js/js.translator/testData/kotlin_lib.js @@ -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) {