Minor, delete unused deprecated method

This commit is contained in:
Alexander Udalov
2015-01-12 11:34:06 +03:00
parent 869cfaaabe
commit 6a11983f9e
@@ -16,21 +16,9 @@
package org.jetbrains.kotlin.utils.addToStdlib
import java.util.HashMap
import java.util.Collections
import java.util.NoSuchElementException
deprecated("Replace with filterKeys when bootstrapped")
public fun <K, V> Map<K, V>.filterKeys_tmp(predicate: (K)->Boolean): Map<K, V> {
val result = HashMap<K, V>()
for ((k, v) in this) {
if (predicate(k)) {
result[k] = v
}
}
return result
}
public fun <T: Any> T?.singletonOrEmptyList(): List<T> = if (this != null) Collections.singletonList(this) else Collections.emptyList()
public fun <T: Any> T?.singletonOrEmptySet(): Set<T> = if (this != null) Collections.singleton(this) else Collections.emptySet()