JS backend: removed unused extension function List::equals.
This commit is contained in:
@@ -6,22 +6,6 @@ public inline fun <T> Iterable<T>.toString(): String {
|
||||
return makeString(", ", "[", "]")
|
||||
}
|
||||
|
||||
public inline fun <T> List<T>.equals(that: List<T>): Boolean {
|
||||
val s1 = this.size()
|
||||
val s2 = that.size()
|
||||
if (s1 == s2) {
|
||||
for (i in 0.rangeTo(s1)) {
|
||||
val elem1 = this.get(i)
|
||||
val elem2 = that.get(i)
|
||||
if (elem1 != elem2) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
/** Returns a new ArrayList with a variable number of initial elements */
|
||||
public inline fun arrayList<T>(vararg values: T) : ArrayList<T> {
|
||||
val list = ArrayList<T>()
|
||||
|
||||
Reference in New Issue
Block a user