Skip to content

Commit bb8d358

Browse files
committed
Drop unused definitions
1 parent 4a29083 commit bb8d358

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -647,17 +647,9 @@ trait Checking {
647647
sym.info.finalResultType.classSymbols.exists(_.isLinkedWith(conv.owner)) ||
648648
defn.isPredefClass(conv.owner) ||
649649
conv.name == nme.reflectiveSelectable && conv.maybeOwner.maybeOwner.maybeOwner == defn.ScalaPackageClass
650-
if (!conversionOK) {
651-
val symToShow =
652-
if (sym.is(Implicit)) sym
653-
else {
654-
assert(sym.name == nme.apply)
655-
sym.owner
656-
}
657-
val clsSyms = sym.info.finalResultType.classSymbols.map(_.linkedClass)
650+
if (!conversionOK)
658651
checkFeature(defn.LanguageModuleClass, nme.implicitConversions,
659652
i"Use of implicit conversion ${conv.showLocated}", NoSymbol, posd.sourcePos)
660-
}
661653
}
662654

663655
/** Issue a feature warning if feature is not enabled */

0 commit comments

Comments
 (0)