JS backend: removed unused extension function List::equals.

This commit is contained in:
develar
2013-08-08 19:51:49 +04:00
committed by Zalim Bashorov
parent 3e2d030e5d
commit 421c896416
-16
View File
@@ -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>()