StdLib cleanup: remove unused imports

This commit is contained in:
Ilya Gorbunov
2015-09-29 22:13:42 +03:00
parent c6caa67cfb
commit 73e41fb216
18 changed files with 6 additions and 34 deletions
@@ -2,9 +2,6 @@ package kotlin.support
import java.util.NoSuchElementException
// TODO should not need this - its here for the JS stuff
import java.lang.UnsupportedOperationException
private enum class State {
Ready,
NotReady,
@@ -4,8 +4,6 @@ package kotlin.io
import java.io.*
import java.nio.charset.Charset
import java.nio.charset.CharsetDecoder
import java.nio.charset.CharsetEncoder
import java.util.NoSuchElementException
/** Returns an [Iterator] of bytes in this input stream. */
@@ -4,8 +4,6 @@
package kotlin.io
import java.io.File
import java.util.Collections
import java.util.NoSuchElementException
import kotlin.text.Regex
/**
@@ -4,9 +4,7 @@
package kotlin.io
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException
import java.util.ArrayList
import java.util.NoSuchElementException
import java.util.Stack
@@ -1,9 +1,6 @@
@file:kotlin.jvm.JvmName("MapAccessorsKt")
package kotlin.properties
import java.io.Serializable
import java.util.NoSuchElementException
// extensions for Map and MutableMap
/**
@@ -1,7 +1,5 @@
package kotlin
import kotlin.properties.Delegates
/**
* Represents the character general category in the Unicode specification.
*/
@@ -1,7 +1,5 @@
package kotlin
import kotlin.properties.Delegates
/**
* Represents the Unicode directionality of a character.
* Character directionality is used to calculate the
@@ -4,11 +4,9 @@
package kotlin
import java.io.StringReader
import java.util.regex.MatchResult
import java.util.regex.Pattern
import java.nio.charset.Charset
import java.util.*
import kotlin.text.Regex
/**
@@ -3,7 +3,6 @@
package kotlin
import java.lang.reflect.Method
import kotlin.jvm.internal.unsafe.*
import kotlin.jvm.internal.Intrinsic
import kotlin.reflect.KClass
+1 -1
View File
@@ -2,7 +2,7 @@ package test.dataclass
import org.junit.Test
import kotlin.test.*
import java.io.Serializable
/**
*/
@@ -18,8 +18,6 @@ package test.numbers
import kotlin.test.*
import java.util.*
import kotlin.test.*
import org.junit.Test as test
class CompanionObjectsExtensionsTest {
-1
View File
@@ -2,7 +2,6 @@ package test.collections
import kotlin.test.*
import java.util.*
import org.junit.Test as test
import java.io.PrintWriter
import java.io.*
-2
View File
@@ -3,8 +3,6 @@ package test.collections
import kotlin.*
import kotlin.io.*
import kotlin.test.*
import java.util.*
import java.io.*
import org.junit.Test as test
class OldStdlibTest() {
@@ -1,8 +1,9 @@
package test.collections
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.ConcurrentMap
import kotlin.test.*
import kotlin.test.assertEquals
import kotlin.test.assertFails
import kotlin.test.expect
import org.junit.Test as test
class MapJVMTest {
+1 -3
View File
@@ -8,9 +8,7 @@ import java.util.HashSet
import java.util.ArrayList
import kotlin.io.walkBottomUp
import kotlin.io.walkTopDown
import kotlin.test.assertFalse
import kotlin.test.assertNull
import kotlin.test.assertTrue
import kotlin.test.*
class FilesTest {
-1
View File
@@ -4,7 +4,6 @@ import org.junit.Test as test
import kotlin.test.*
import java.io.Writer
import java.io.BufferedReader
import java.io.File
class IOStreamsTest {
@test fun testGetStreamOfFile() {
@@ -2,8 +2,7 @@ package test.properties.delegation.lazy
import org.junit.Test as test
import kotlin.properties.*
import kotlin.test.assertNotNull
import kotlin.test.assertTrue
import kotlin.test.*
class LazyValTest {
var result = 0
@@ -1,7 +1,6 @@
package test.text
import kotlin.test.*
import kotlin.text.*
import org.junit.Test as test