Redundant projections removed from code

This commit is contained in:
Andrey Breslav
2012-11-19 19:52:33 +04:00
parent d3f9e61db7
commit da2f886bee
2 changed files with 18 additions and 18 deletions
+13 -13
View File
@@ -10,7 +10,7 @@ public trait Collection<out E> : Iterable<E>, Hashable {
public fun <T> toArray(a : Array<out T>) : Array<T>
// Bulk Operations
public fun containsAll(c : Collection<out Any?>) : Boolean
public fun containsAll(c : Collection<Any?>) : Boolean
}
public trait MutableCollection<E> : Collection<E>, MutableIterable<E> {
@@ -22,9 +22,9 @@ public trait MutableCollection<E> : Collection<E>, MutableIterable<E> {
public fun remove(o : Any?) : Boolean
// Bulk Modification Operations
public fun addAll(c : Collection<out E>) : Boolean
public fun removeAll(c : Collection<out Any?>) : Boolean
public fun retainAll(c : Collection<out Any?>) : Boolean
public fun addAll(c : Collection<E>) : Boolean
public fun removeAll(c : Collection<Any?>) : Boolean
public fun retainAll(c : Collection<Any?>) : Boolean
public fun clear()
}
@@ -38,7 +38,7 @@ public trait List<out E> : Collection<E> {
override fun <T> toArray(a : Array<out T>) : Array<T>
// Bulk Operations
override fun containsAll(c : Collection<out Any?>) : Boolean
override fun containsAll(c : Collection<Any?>) : Boolean
// Positional Access Operations
public fun get(index : Int) : E
@@ -61,10 +61,10 @@ public trait MutableList<E> : List<E>, MutableCollection<E> {
override fun remove(o : Any?) : Boolean
// Bulk Modification Operations
override fun addAll(c : Collection<out E>) : Boolean
public fun addAll(index : Int, c : Collection<out E>) : Boolean
override fun removeAll(c : Collection<out Any?>) : Boolean
override fun retainAll(c : Collection<out Any?>) : Boolean
override fun addAll(c : Collection<E>) : Boolean
public fun addAll(index : Int, c : Collection<E>) : Boolean
override fun removeAll(c : Collection<Any?>) : Boolean
override fun retainAll(c : Collection<Any?>) : Boolean
override fun clear()
// Positional Access Operations
@@ -90,7 +90,7 @@ public trait Set<out E> : Collection<E> {
override fun <T> toArray(a : Array<out T>) : Array<T>
// Bulk Operations
override fun containsAll(c : Collection<out Any?>) : Boolean
override fun containsAll(c : Collection<Any?>) : Boolean
}
public trait MutableSet<E> : Set<E>, MutableCollection<E> {
@@ -102,9 +102,9 @@ public trait MutableSet<E> : Set<E>, MutableCollection<E> {
override fun remove(o : Any?) : Boolean
// Bulk Modification Operations
override fun addAll(c : Collection<out E>) : Boolean
override fun removeAll(c : Collection<out Any?>) : Boolean
override fun retainAll(c : Collection<out Any?>) : Boolean
override fun addAll(c : Collection<E>) : Boolean
override fun removeAll(c : Collection<Any?>) : Boolean
override fun retainAll(c : Collection<Any?>) : Boolean
override fun clear()
}
+5 -5
View File
@@ -22,10 +22,10 @@ public abstract class AbstractCollection<E>() : MutableCollection<E> {
override fun add(e: E): Boolean = js.noImpl
override fun remove(o: Any?): Boolean = js.noImpl
override fun addAll(c: Collection<out E>): Boolean = js.noImpl
override fun containsAll(c : Collection<out Any?>) : Boolean = js.noImpl
override fun removeAll(c : Collection<out Any?>) : Boolean = js.noImpl
override fun retainAll(c : Collection<out Any?>) : Boolean = js.noImpl
override fun addAll(c: Collection<E>): Boolean = js.noImpl
override fun containsAll(c : Collection<Any?>) : Boolean = js.noImpl
override fun removeAll(c : Collection<Any?>) : Boolean = js.noImpl
override fun retainAll(c : Collection<Any?>) : Boolean = js.noImpl
override fun clear(): Unit = js.noImpl
override fun size(): Int = js.noImpl
@@ -41,7 +41,7 @@ public abstract class AbstractList<E>(): AbstractCollection<E>(), MutableList<E>
library("addAt")
override fun add(index: Int, element: E): Unit = js.noImpl
override fun addAll(index : Int, c : Collection<out E>) : Boolean = js.noImpl
override fun addAll(index : Int, c : Collection<E>) : Boolean = js.noImpl
library("removeAt")
override fun remove(index: Int): E = js.noImpl