Implement post-refactoring optimization of unused imports

#KT-15822 Fixed
 #KT-13755 Fixed
This commit is contained in:
Alexey Sedunov
2017-03-05 03:37:40 +03:00
parent 7d185349c8
commit bab762b761
82 changed files with 199 additions and 191 deletions
@@ -1,5 +1,2 @@
package source
import library.B
import library.bar
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
val t: Test = Test()
}
@@ -1,7 +1,5 @@
package b
import b.Test
fun bar() {
val t: Test = Test()
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.Test
fun bar() {
@@ -1,5 +1,3 @@
package q.`in`.`fun`
import q.`in`.`fun`.To
class Usage : To() {}
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
val t: Test = Test()
}
@@ -1,7 +1,5 @@
package b
import b.Test
fun bar() {
val t: Test = Test()
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.Test
fun bar() {
@@ -1,6 +1,5 @@
package b
import b.test
import a.Test
fun bar() {
@@ -1,6 +1,5 @@
package b
import b.test
import a.Test
fun bar() {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
test()
}
@@ -1,7 +1,5 @@
package b
import b.test
fun bar() {
test()
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.test
fun bar() {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
test()
}
@@ -1,7 +1,5 @@
package b
import b.test
fun bar() {
test()
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.test
fun bar() {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
val t: Test = Test
}
@@ -1,7 +1,5 @@
package b
import b.Test
fun bar() {
val t: Test = Test
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.Test
fun bar() {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
val t: Test = Test
}
@@ -1,7 +1,5 @@
package b
import b.Test
fun bar() {
val t: Test = Test
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.Test
fun bar() {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
test = ""
println(test)
@@ -1,7 +1,5 @@
package b
import b.test
fun bar() {
test = ""
println(test)
@@ -1,6 +1,5 @@
package c
import a.*
import b.test
fun bar() {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
test = ""
println(test)
@@ -1,7 +1,5 @@
package b
import b.test
fun bar() {
test = ""
println(test)
@@ -1,6 +1,5 @@
package c
import a.*
import b.test
fun bar() {