Skip to content

Commit 8e907af

Browse files
committed
Remove unused node
1 parent d112f0e commit 8e907af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/truffleruby/language/TruffleBootNodes.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public abstract static class MainNode extends CoreMethodArrayArgumentsNode {
9595
@Specialization
9696
public int main(DynamicObject kind, DynamicObject toExecute,
9797
@Cached("create()") IndirectCallNode callNode,
98-
@Cached("createPrivate()") CallDispatchHeadNode findSFile,
9998
@Cached("createPrivate()") CallDispatchHeadNode checkSyntax,
10099
@Cached("create()") StringNodes.MakeStringNode makeStringNode) {
101100

@@ -105,7 +104,7 @@ public int main(DynamicObject kind, DynamicObject toExecute,
105104

106105
try {
107106
source = loadMainSourceSettingDollarZero(
108-
findSFile, makeStringNode,
107+
makeStringNode,
109108
StringOperations.getString(kind),
110109
StringOperations.getString(toExecute).intern());
111110
} catch (RaiseException e) {
@@ -170,7 +169,7 @@ private void setArgvGlobals(StringNodes.MakeStringNode makeStringNode) {
170169
}
171170
}
172171

173-
private RubySource loadMainSourceSettingDollarZero(CallDispatchHeadNode findSFile, StringNodes.MakeStringNode makeStringNode, String kind, String toExecute) {
172+
private RubySource loadMainSourceSettingDollarZero(StringNodes.MakeStringNode makeStringNode, String kind, String toExecute) {
174173
final RubySource source;
175174
final Object dollarZeroValue;
176175
try {

0 commit comments

Comments
 (0)