Skip to content

Commit 9368812

Browse files
committed
Address review: Remove unused parameter
1 parent a399811 commit 9368812

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ object Objects:
876876
* @param ctor The symbol of the target constructor.
877877
* @param args The arguments passsed to the constructor.
878878
*/
879-
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) {
879+
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) {
880880
outer match
881881

882882
case _ : Fun | _: OfArray =>
@@ -915,7 +915,7 @@ object Objects:
915915
instance
916916

917917
case ValueSet(values) =>
918-
values.map(ref => instantiate(ref, klass, ctor, args, inKlass)).join
918+
values.map(ref => instantiate(ref, klass, ctor, args)).join
919919
}
920920

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

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

0 commit comments

Comments
 (0)