Skip to content

Commit 6e85813

Browse files
committed
[Truffle] Remove old String#include? node.
1 parent 77fd248 commit 6e85813

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

core/src/main/java/org/jruby/truffle/nodes/core/StringNodes.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -737,29 +737,6 @@ public int getByte(RubyString string, int index) {
737737
}
738738
}
739739

740-
@CoreMethod(names = "__include?", required = 1)
741-
public abstract static class IncludeQueryNode extends CoreMethodNode {
742-
743-
public IncludeQueryNode(RubyContext context, SourceSection sourceSection) {
744-
super(context, sourceSection);
745-
}
746-
747-
public IncludeQueryNode(IncludeQueryNode prev) {
748-
super(prev);
749-
}
750-
751-
@Specialization
752-
public boolean includeQuery(RubyString string, RubyString otherString) {
753-
notDesignedForCompilation();
754-
755-
int foundIndex = StringSupport.index(string, string.getBytes(), string.length(),
756-
otherString, otherString.getBytes(), otherString.length(),
757-
0, string.getBytes().getEncoding());
758-
759-
return foundIndex != -1;
760-
}
761-
}
762-
763740
@CoreMethod(names = "inspect")
764741
public abstract static class InspectNode extends CoreMethodNode {
765742

0 commit comments

Comments
 (0)