Skip to content

Commit 473e7fc

Browse files
committed
remove obsolete code
1 parent 0c4a06f commit 473e7fc

File tree

1 file changed

+0
-9
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+0
-9
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,6 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
395395
}
396396
}
397397

398-
// simplify p.Case$.This.m => p.Case.m
399-
def simplifyPrefix(tp: Type): Type = tp match {
400-
case tp @ ThisType(mcls: TypeRef) if mcls.symbol.sourceModule.exists =>
401-
TermRef(simplifyPrefix(mcls.prefix), mcls.symbol.sourceModule.asTerm)
402-
case tp @ TypeRef(prefix, _) => tp.derivedSelect(simplifyPrefix(prefix))
403-
case tp @ TermRef(prefix, _) => tp.derivedSelect(simplifyPrefix(prefix))
404-
case _ => tp
405-
}
406-
407398
/** Refine tp2 based on tp1
408399
*
409400
* E.g. if `tp1` is `Option[Int]`, `tp2` is `Some`, then return

0 commit comments

Comments
 (0)