Skip to content

Commit c5ff2ff

Browse files
author
Nicolas Laurent
committed
remove unused profiles
1 parent c1ea5db commit c5ff2ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/truffleruby/core/rope/RopeNodes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ protected Rope substringNativeRope(NativeRope base, int byteOffset, int byteLeng
172172
@Specialization(guards = { "byteLength > 1", "!sameAsBase(base, byteLength)" })
173173
protected Rope substringConcatRope(ConcatRope base, int byteOffset, int byteLength,
174174
@Cached BytesNode bytesNode,
175-
@Cached WithEncodingNode withEncodingNode,
176-
@Cached MakeSubstringRopeNode makeSubstringRopeNode,
177-
@Cached ConditionProfile matchesChildProfile) {
175+
@Cached MakeSubstringRopeNode makeSubstringRopeNode) {
178176
// NOTE(norswap, 19 Nov 2020):
179177
// We flatten the rope here. This avoids issue in the (fairly common) case where the rope tree is basically
180178
// a linked list. In that case, reading successive substrings causes increasingly bigger concat ropes

0 commit comments

Comments
 (0)