Skip to content

Commit f18b45f

Browse files
committed
isSplatted is always false for the simpler RubyCallNodeParameters constructor
1 parent 09225a1 commit f18b45f

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/main/java/org/truffleruby/language/dispatch/RubyCallNodeParameters.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ public RubyCallNodeParameters(
3131
RubyNode block,
3232
ArgumentsDescriptor descriptor,
3333
RubyNode[] arguments,
34-
boolean isSplatted,
3534
boolean ignoreVisibility) {
36-
this(receiver, methodName, block, descriptor, arguments, isSplatted, ignoreVisibility, false, false, false);
35+
this(receiver, methodName, block, descriptor, arguments, false, ignoreVisibility, false, false, false);
3736
}
3837

3938
public RubyCallNodeParameters(

src/main/java/org/truffleruby/parser/Translator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ protected RubyContextSourceNode createCallNode(RubyNode receiver, String method,
179179
null,
180180
EmptyArgumentsDescriptor.INSTANCE,
181181
arguments,
182-
false,
183182
true);
184183
return language.coreMethodAssumptions.createCallNode(parameters);
185184
}

src/main/java/org/truffleruby/yarp/YARPTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public RubyNode visitCallNode(Nodes.CallNode node) {
8181

8282
boolean ignoreVisibility = node.receiver == null;
8383
return new RubyCallNode(new RubyCallNodeParameters(receiver, methodName, null,
84-
EmptyArgumentsDescriptor.INSTANCE, translatedArguments, false, ignoreVisibility));
84+
EmptyArgumentsDescriptor.INSTANCE, translatedArguments, ignoreVisibility));
8585
}
8686

8787
@Override

0 commit comments

Comments
 (0)