File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/org/truffleruby/core/rope Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -350,11 +350,10 @@ public StringAttributes calculateAttributesAsciiCompatibleGeneric(Encoding encod
350
350
@ Specialization (guards = { "!isEmpty(bytes)" , "!isBinaryString(encoding)" , "!isAsciiCompatible(encoding)" })
351
351
public StringAttributes calculateAttributesGeneric (Encoding encoding , byte [] bytes ,
352
352
@ Cached ("create()" ) CalculateCharacterLengthNode calculateCharacterLengthNode ,
353
- @ Cached ("createBinaryProfile()" ) ConditionProfile asciiCompatibleProfile ,
354
353
@ Cached ("createBinaryProfile()" ) ConditionProfile validCharacterProfile ) {
355
354
// Taken from StringSupport.strLengthWithCodeRangeNonAsciiCompatible.
356
355
357
- CodeRange codeRange = asciiCompatibleProfile . profile ( encoding . isAsciiCompatible ()) ? CR_7BIT : CR_VALID ;
356
+ CodeRange codeRange = CR_VALID ;
358
357
int characters ;
359
358
int p = 0 ;
360
359
final int end = bytes .length ;
You can’t perform that action at this time.
0 commit comments