JS stdlib: drop unnecessary code.
This commit is contained in:
@@ -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.*;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user