Remove unneeded default imports in stdlib and tests
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
|
||||
package kotlin
|
||||
|
||||
import kotlin.js.*
|
||||
|
||||
// TODO: Ignore FunctionN interfaces
|
||||
|
||||
public interface Function0<out R> : Function<R> {
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
|
||||
import kotlin.js.*
|
||||
|
||||
/** Concat regular Array's and TypedArray's into an Array.
|
||||
*/
|
||||
@PublishedApi
|
||||
@@ -51,4 +48,4 @@ internal fun <T> primitiveArrayConcat(vararg args: T): T {
|
||||
internal inline fun withType(type: String, array: dynamic): dynamic {
|
||||
array.`$type$` = type
|
||||
return array
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,9 +13,6 @@ package kotlin.collections
|
||||
import kotlin.js.*
|
||||
import primitiveArrayConcat
|
||||
import withType
|
||||
import kotlin.*
|
||||
import kotlin.text.*
|
||||
import kotlin.comparisons.*
|
||||
|
||||
/**
|
||||
* Returns a [List] that wraps the original array.
|
||||
|
||||
@@ -11,9 +11,6 @@ package kotlin.collections
|
||||
//
|
||||
|
||||
import kotlin.js.*
|
||||
import kotlin.*
|
||||
import kotlin.text.*
|
||||
import kotlin.comparisons.*
|
||||
|
||||
/**
|
||||
* Reverses elements in the list in-place.
|
||||
|
||||
@@ -11,9 +11,6 @@ package kotlin.comparisons
|
||||
//
|
||||
|
||||
import kotlin.js.*
|
||||
import kotlin.*
|
||||
import kotlin.text.*
|
||||
import kotlin.comparisons.*
|
||||
|
||||
/**
|
||||
* Returns the greater of two values.
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package kotlin.dom
|
||||
|
||||
import org.w3c.dom.*
|
||||
import kotlin.collections.*
|
||||
|
||||
|
||||
/**
|
||||
* Gets a value indicating whether this node is a TEXT_NODE or a CDATA_SECTION_NODE.
|
||||
@@ -14,7 +13,6 @@ import kotlin.collections.*
|
||||
public val Node.isText: Boolean
|
||||
get() = nodeType == Node.TEXT_NODE || nodeType == Node.CDATA_SECTION_NODE
|
||||
|
||||
|
||||
/**
|
||||
* Gets a value indicating whether this node is an [Element].
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user