Skip to content

Commit dde90d0

Browse files
committed
Remove unnecessary quotation level change
1 parent 357b860 commit dde90d0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

compiler/src/dotty/tools/dotc/inlines/PrepareInlineable.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,7 @@ object PrepareInlineable {
8686
}
8787

8888
override def transform(tree: Tree)(using Context): Tree =
89-
inContext(stagingContext(tree)) {
90-
postTransform(super.transform(preTransform(tree)))
91-
}
92-
93-
private def stagingContext(tree: Tree)(using Context): Context = tree match
94-
case tree: Apply if tree.symbol eq defn.QuotedTypeModule_of => StagingLevel.quoteContext
95-
case _ => ctx
89+
postTransform(super.transform(preTransform(tree)))
9690
}
9791

9892
/** Direct approach: place the accessor with the accessed symbol. This has the

0 commit comments

Comments
 (0)