Skip to content

Commit 9e16a48

Browse files
committed
Drop dead code
1 parent cee8162 commit 9e16a48

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,14 +603,10 @@ object ProtoTypes {
603603
else if (tp.symbol.isStatic || (tp.prefix `eq` NoPrefix)) tp
604604
else tp.derivedSelect(wildApprox(tp.prefix, theMap, seen))
605605
case tp @ AppliedType(tycon, args) =>
606-
def dropBounds(tp: Type) = tp match {
607-
case tp: TypeBounds if false => WildcardType(tp)
608-
case tp => tp
609-
}
610606
wildApprox(tycon, theMap, seen) match {
611607
case _: WildcardType => WildcardType // this ensures we get a * type
612608
case tycon1 => tp.derivedAppliedType(tycon1,
613-
args.mapConserve(arg => dropBounds(wildApprox(arg, theMap, seen))))
609+
args.mapConserve(arg => wildApprox(arg, theMap, seen)))
614610
}
615611
case tp: RefinedType => // default case, inlined for speed
616612
tp.derivedRefinedType(

0 commit comments

Comments
 (0)