Remove unneeded default imports in stdlib and tests

This commit is contained in:
Alexander Udalov
2018-09-28 14:57:14 +02:00
parent 199ae3bac8
commit 55c8b35eee
67 changed files with 24 additions and 158 deletions
@@ -9,8 +9,6 @@
package kotlin.collections
import kotlin.*
/**
* Provides a skeletal implementation of the read-only [List] interface.
*
@@ -8,8 +8,6 @@
package kotlin.collections
import kotlin.*
import kotlin.comparisons.compareValues
import kotlin.contracts.*
internal object EmptyIterator : ListIterator<Nothing> {
@@ -2,14 +2,12 @@
* 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.
*/
@file:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("CollectionsKt")
package kotlin.collections
import kotlin.*
private open class ReversedListReadOnly<out T>(private val delegate: List<T>) : AbstractList<T>() {
override val size: Int get() = delegate.size
override fun get(index: Int): T = delegate[reverseElementIndex(index)]
@@ -8,8 +8,6 @@
package kotlin.sequences
import kotlin.*
/**
* Given an [iterator] function constructs a [Sequence] that returns values through the [Iterator]
* provided by that function.
@@ -5,8 +5,6 @@
package kotlin.collections
import kotlin.*
internal fun checkWindowSizeStep(size: Int, step: Int) {
require(size > 0 && step > 0) {
if (size != step)
@@ -196,4 +194,4 @@ private class RingBuffer<T>(val capacity: Int) : AbstractList<T>(), RandomAccess
this[idx] = element
}
}
}
}
@@ -5,7 +5,6 @@
package kotlin.properties
import kotlin.*
import kotlin.reflect.KProperty
/**
@@ -5,7 +5,6 @@
package kotlin.random
import kotlin.*
import kotlin.math.nextDown
/**
@@ -8,8 +8,6 @@
package kotlin.ranges
import kotlin.*
/**
* Represents a range of floating point numbers.
* Extends [ClosedRange] interface providing custom operation [lessThanOrEquals] for comparing values of range domain type.
@@ -9,10 +9,6 @@
package kotlin.text
import kotlin.*
/**
* Parses the string as a signed [Byte] number and returns the result
* or `null` if the string is not a valid representation of a number.
@@ -180,4 +176,4 @@ public fun String.toLongOrNull(radix: Int): Long? {
}
internal fun numberFormatError(input: String): Nothing = throw NumberFormatException("Invalid number format: '$input'")
internal fun numberFormatError(input: String): Nothing = throw NumberFormatException("Invalid number format: '$input'")
@@ -6,14 +6,10 @@
@file:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("StringsKt")
package kotlin.text
import kotlin.*
import kotlin.comparisons.*
import kotlin.contracts.contract
/**
* Returns a sub sequence of this char sequence having leading and trailing characters matching the [predicate] removed.
*/