JS stdlib: drop unnecessary code.

This commit is contained in:
Zalim Bashorov
2014-01-24 13:08:13 +04:00
parent b8559744b0
commit 0cb016b187
3 changed files with 1 additions and 13 deletions
-5
View File
@@ -1,8 +1,5 @@
package java.util
library("collectionsMax")
public fun max<T>(col: Collection<T>, comp: Comparator<T>): T = js.noImpl
library
public trait Comparator<T> {
fun compare(obj1: T, obj2: T): Int;
@@ -35,11 +32,9 @@ public abstract class AbstractList<E>() : AbstractCollection<E>(), MutableList<E
override fun set(index: Int, element: E): E = js.noImpl
override fun add(e: E): Boolean = js.noImpl
library("addAt")
override fun add(index: Int, element: E): Unit = js.noImpl
override fun addAll(index: Int, c: Collection<E>): Boolean = js.noImpl
library("removeAt")
override fun remove(index: Int): E = js.noImpl
override fun indexOf(o: Any?): Int = js.noImpl
@@ -1,8 +0,0 @@
package foo
import java.util.Collection;
import java.util.Comparator.
fun max<T>(col :Collection<T>, ) {
}
@@ -4,6 +4,7 @@
*/
import java.util.*
import java.util.Collections.max
import js.*;
/*