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,3 @@
import A.*
fun bar(s: String) {
val t: B.C.X = B.C.X()
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
val t: B.X = B.X()
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
val t: B.X = B.X()
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
val t: B.X = B.X()
}
@@ -1,6 +1,5 @@
package k
import j.A.*
import j.B
fun bar(s: String) {
@@ -1,6 +1,5 @@
package k
import j.A
import j.B
fun bar(s: String) {
@@ -1,7 +1,5 @@
package b
import b.*
fun bar() {
val t: X = X()
}
@@ -1,7 +1,5 @@
package a
import a.A.*
fun bar(s: String) {
val t: X = X()
}
@@ -1,7 +1,5 @@
package a
import a.A.*
fun bar(s: String) {
val t: X = X(A(), "test")
}
@@ -1,7 +1,5 @@
package a
import a.X
fun bar(s: String) {
val t: X = X(A(), "test")
}
@@ -1,7 +1,5 @@
package a
import a.A.*
fun bar(s: String) {
val t: X = X(A()) { s }
}
@@ -1,7 +1,5 @@
package a
import a.X
fun bar(s: String) {
val t: X = X(A()) { s }
}
@@ -1,7 +1,5 @@
package a
import a.A.*
fun bar(s: String) {
val t: Y = Y()
}
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
val t: A = A()
}
@@ -1,6 +1,5 @@
package c
import a.*
import b.A
fun bar() {
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.C.X = s
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.X = s
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.X = s
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.X = s
}
@@ -1,6 +1,5 @@
package k
import j.A.*
import j.B
fun bar(s: String) {
@@ -1,6 +1,5 @@
package k
import j.A
import j.B
fun bar(s: String) {
@@ -1,7 +1,5 @@
package b
import a.*
fun bar() {
val t: A = A()
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.C.foo(s)
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.foo(s)
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.foo(s)
}
@@ -1,5 +1,3 @@
import A.*
fun bar(s: String) {
B.foo(s)
}
@@ -1,6 +1,5 @@
package k
import j.A.*
import j.B
fun bar(s: String) {
@@ -1,6 +1,5 @@
package k
import j.A
import j.B
fun bar(s: String) {
@@ -1,6 +1,3 @@
import Foo
import foo
fun test() {
Foo()
foo()
@@ -1,8 +1,5 @@
package target
import target.Foo
import target.foo
fun test() {
Foo()
foo()
@@ -1,7 +1,6 @@
package b
import a.f2
import b.f3
import c.f4
fun test() {
@@ -1,6 +1,5 @@
package c
import a.*
import b.TEST
import b.Test
import b.test
@@ -1,7 +1,6 @@
package test2
import test.A
import test.A.B
import test.C
fun foo2(): C {
@@ -1,6 +1,5 @@
package test2
import test.A
import test.C
fun foo(): C {
@@ -1,6 +1,5 @@
package test2
import test.A.B
import test.C
fun foo(): C {
@@ -1,6 +1,5 @@
package test2
import test.A
import test.B
fun foo(): B {
@@ -1,6 +1,5 @@
package test2
import test.A
import test.B
fun foo2(): B {
@@ -1,7 +1,6 @@
package test2
import test.A
import test.A.B
fun foo(): A.C {
return A.C()
@@ -1,7 +1,6 @@
package test2
import test.A
import test.A.B
fun foo(): A.C {
return A.C()
@@ -1,6 +1,5 @@
package test2
import test.A
import test.B
fun foo(): B {
@@ -1,6 +1,5 @@
package test2
import test.A
import test3.D
fun foo(): D.C {
@@ -1,6 +1,5 @@
package test2
import test.A.B
import test3.D
fun foo(): D.C {
@@ -1,6 +1,5 @@
package test2
import test.A
import test.B
fun foo(): B {
@@ -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() {