Skip to content

Commit 81db8cd

Browse files
committed
Address review: Remove unused parameter
1 parent a93c5f3 commit 81db8cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ object Objects:
875875
* @param ctor The symbol of the target constructor.
876876
* @param args The arguments passsed to the constructor.
877877
*/
878-
def instantiate(outer: Value, klass: ClassSymbol, ctor: Symbol, args: List[ArgInfo], inKlass: ClassSymbol): Contextual[Value] = log("instantiating " + klass.show + ", outer = " + outer + ", args = " + args.map(_.value.show), printer, (_: Value).show) {
878+
def instantiate(outer: Value, klass: ClassSymbol, ctor: Symbol, args: List[ArgInfo]): Contextual[Value] = log("instantiating " + klass.show + ", outer = " + outer + ", args = " + args.map(_.value.show), printer, (_: Value).show) {
879879
outer match
880880

881881
case _ : Fun | _: OfArray =>
@@ -914,7 +914,7 @@ object Objects:
914914
instance
915915

916916
case ValueSet(values) =>
917-
values.map(ref => instantiate(ref, klass, ctor, args, inKlass)).join
917+
values.map(ref => instantiate(ref, klass, ctor, args)).join
918918
}
919919

920920
/** Handle local variable definition, `val x = e` or `var x = e`.
@@ -1088,7 +1088,7 @@ object Objects:
10881088
val cls = tref.classSymbol.asClass
10891089
withTrace(trace2) {
10901090
val outer = outerValue(tref, thisV, klass)
1091-
instantiate(outer, cls, ctor, args, klass)
1091+
instantiate(outer, cls, ctor, args)
10921092
}
10931093

10941094
case Apply(ref, arg :: Nil) if ref.symbol == defn.InitRegionMethod =>

0 commit comments

Comments
 (0)