Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions truffle/src/main/java/org/jruby/truffle/core/rope/RopeNodes.java
Original file line number Diff line number Diff line change
@@ -216,10 +216,6 @@ protected static boolean sameAsBase(Rope base, int offset, int byteLength) {
})
public abstract static class MakeConcatNode extends RubyNode {

protected static final int SHORT_LEAF_BYTESIZE_THRESHOLD = 128;

@Child private MakeLeafRopeNode makeLeafRopeNode;

public MakeConcatNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}
@@ -288,14 +284,6 @@ private int max(int x, int y) {
return x - ((x - y) & ((x - y) >> (Integer.SIZE - 1)));
}

protected static boolean isShortLeafRope(Rope rope) {
return (rope.byteLength() < SHORT_LEAF_BYTESIZE_THRESHOLD) && isLeafRope(rope);
}

protected static boolean isLeafRope(Rope rope) {
return rope instanceof LeafRope;
}

protected static boolean isMutableRope(Rope rope) {
return rope instanceof MutableRope;
}

0 comments on commit 5e3c54b

Please sign in to comment.