Skip to content

Commit 085b2fa

Browse files
author
Nicolas Laurent
committed
Revert "inline String#to_sym"
This reverts commit 4e5c02f.
1 parent e287d33 commit 085b2fa

File tree

3 files changed

+0
-56
lines changed

3 files changed

+0
-56
lines changed

src/main/java/org/truffleruby/core/inlined/CoreMethods.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public class CoreMethods {
8787
public final InternalMethod STRING_BYTESIZE;
8888
public final InternalMethod MODULE_CASE_EQUAL;
8989
public final InternalMethod STRING_EQUAL;
90-
public final InternalMethod STRING_TO_SYM;
9190
public final InternalMethod SYMBOL_TO_PROC;
9291
public final InternalMethod ARRAY_AT;
9392
public final InternalMethod ARRAY_INDEX_GET;
@@ -154,7 +153,6 @@ public CoreMethods(RubyContext context) {
154153
KERNEL_KIND_OF = getMethod(kernelModule, "kind_of?");
155154
MODULE_CASE_EQUAL = getMethod(moduleClass, "===");
156155
STRING_EQUAL = getMethod(stringClass, "==");
157-
STRING_TO_SYM = getMethod(stringClass, "to_sym");
158156
SYMBOL_TO_PROC = getMethod(symbolClass, "to_proc");
159157
ARRAY_AT = getMethod(arrayClass, "at");
160158
ARRAY_INDEX_GET = getMethod(arrayClass, "[]");
@@ -213,8 +211,6 @@ public RubyNode createCallNode(RubyCallNodeParameters callParameters, Translator
213211
return InlinedIsNilNodeGen.create(context, callParameters, self);
214212
case "bytesize":
215213
return InlinedByteSizeNodeGen.create(context, callParameters, self);
216-
case "to_sym":
217-
return InlinedToSymNodeGen.create(context, callParameters, self);
218214
default:
219215
}
220216
} else if (n == 2) {

src/main/java/org/truffleruby/core/inlined/InlinedToSymNode.java

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/main/java/org/truffleruby/core/string/StringNodes.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
import org.truffleruby.language.control.RaiseException;
173173
import org.truffleruby.language.dispatch.DispatchNode;
174174
import org.truffleruby.language.library.RubyLibrary;
175-
import org.truffleruby.language.methods.Split;
176175
import org.truffleruby.language.objects.AllocateHelperNode;
177176
import org.truffleruby.language.objects.WriteObjectFieldNode;
178177
import org.truffleruby.language.yield.YieldNode;
@@ -2493,12 +2492,6 @@ public abstract static class ToSymNode extends CoreMethodArrayArgumentsNode {
24932492

24942493
@Child RopeNodes.CodeRangeNode codeRangeNode = RopeNodes.CodeRangeNode.create();
24952494

2496-
public static ToSymNode create() {
2497-
return StringNodesFactory.ToSymNodeFactory.create(null);
2498-
}
2499-
2500-
public abstract RubySymbol execute(RubyString string);
2501-
25022495
@Specialization(
25032496
guards = { "!isBrokenCodeRange(string, codeRangeNode)", "equalNode.execute(string.rope,cachedRope)" },
25042497
limit = "getDefaultCacheLimit()")

0 commit comments

Comments
 (0)