@@ -61,7 +61,7 @@ object Inliner {
6161 * @return An `Inlined` node that refers to the original call and the inlined bindings
6262 * and body that replace it.
6363 */
64- def inlineCall (tree : Tree , pt : Type )(implicit ctx : Context ): Tree = {
64+ def inlineCall (tree : Tree )(implicit ctx : Context ): Tree = {
6565
6666 /** Set the position of all trees logically contained in the expansion of
6767 * inlined call `call` to the position of `call`. This transform is necessary
@@ -102,11 +102,11 @@ object Inliner {
102102
103103 val tree1 = liftBindings(tree, identity)
104104 if (bindings.nonEmpty)
105- cpy.Block (tree)(bindings.toList, inlineCall(tree1, pt ))
105+ cpy.Block (tree)(bindings.toList, inlineCall(tree1))
106106 else if (enclosingInlineds.length < ctx.settings.XmaxInlines .value) {
107107 val body = bodyToInline(tree.symbol) // can typecheck the tree and thereby produce errors
108108 if (ctx.reporter.hasErrors) tree
109- else new Inliner (tree, body).inlined(pt, tree.sourcePos)
109+ else new Inliner (tree, body).inlined(tree.sourcePos)
110110 }
111111 else
112112 errorTree(
@@ -384,7 +384,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
384384 }
385385
386386 /** The Inlined node representing the inlined call */
387- def inlined (pt : Type , sourcePos : SourcePosition ): Tree = {
387+ def inlined (sourcePos : SourcePosition ): Tree = {
388388
389389 if (callTypeArgs.length == 1 )
390390 if (inlinedMethod == defn.Compiletime_constValue ) {
@@ -509,7 +509,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
509509 }
510510
511511 // Run a typing pass over the inlined tree. See InlineTyper for details.
512- val expansion1 = inlineTyper.typed(expansion, pt )(inlineCtx)
512+ val expansion1 = inlineTyper.typed(expansion)(inlineCtx)
513513
514514 if (ctx.settings.verbose.value) {
515515 inlining.println(i " to inline = $rhsToInline" )
0 commit comments