Skip to content

Commit

Permalink
Remove logger and ONLY in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Jan 24, 2017
1 parent b6fee12 commit bf341f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions core/src/test/resources/ExplicitImplicit/basic.source
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ class A {
implicit val x: List[Int] = List(1)
}
<<< map
import scala.concurrent.Future
class A {
implicit val x = Map(1 -> "STRING")
}
>>>
import scala.concurrent.Future
class A {
implicit val x: Map[Int, String] =
Map(1 -> "STRING")
Expand Down Expand Up @@ -185,7 +183,7 @@ class A {
}
implicit val x: D.c.B = new D.c.B
}
<<< ONLY renamed term in type selection
<<< renamed term in type selection
package E {
object D {
class C
Expand All @@ -205,7 +203,7 @@ class A {
import E.{D => d}
implicit val x: d.C = new d.C
}
<<< ONLY renamed term in deeper type selection
<<< renamed term in deeper type selection
package E {
object D {
object C {
Expand Down
2 changes: 0 additions & 2 deletions scalafix-nsc/src/main/scala/scalafix/nsc/NscSemanticApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ trait NscSemanticApi extends ReflectToolkit {
val wholeScope = mixScopes(inScope, realRootScope)
val symbols = lookupSymbols(names, wholeScope, toShorten.syntax)
val metaToSymbols = names.zip(symbols)
logger.elem(metaToSymbols)

if (symbols.isEmpty) refNoThis
else {
Expand Down Expand Up @@ -427,7 +426,6 @@ trait NscSemanticApi extends ReflectToolkit {

new SemanticApi {
override def shortenType(tpe: m.Type, owner: m.Tree): m.Type = {
logger.elem(tpe)
val ownerTpePos = gimmePosition(owner).start.offset
val ownerTree = traverser.treeOwners(ownerTpePos)
val gtpeTree = traverser.offsets(ownerTpePos)
Expand Down

0 comments on commit bf341f7

Please sign in to comment.