@@ -170,15 +170,15 @@ private void initializeLocaleEncoding(TruffleNFIPlatform nfi, NativeConfiguratio
170
170
}
171
171
172
172
@ TruffleBoundary
173
- private static DynamicObject newRubyEncoding (RubyContext context , Encoding encoding , byte [] name , int p , int end , boolean dummy ) {
173
+ private static DynamicObject newRubyEncoding (RubyContext context , Encoding encoding , byte [] name , int p , int end ) {
174
174
assert p == 0 : "Ropes can't be created with non-zero offset: " + p ;
175
175
assert end == name .length : "Ropes must have the same exact length as the name array (len = " + end + "; name.length = " + name .length + ")" ;
176
176
177
177
final Rope rope = RopeOperations .create (name , USASCIIEncoding .INSTANCE , CodeRange .CR_7BIT );
178
178
final Rope cachedRope = context .getRopeCache ().getRope (rope .getBytes (), rope .getEncoding (), rope .getCodeRange ());
179
179
final DynamicObject string = StringOperations .createFrozenString (context , cachedRope );
180
180
181
- return Layouts .ENCODING .createEncoding (context .getCoreLibrary ().getEncodingFactory (), encoding , string , dummy );
181
+ return Layouts .ENCODING .createEncoding (context .getCoreLibrary ().getEncodingFactory (), encoding , string );
182
182
}
183
183
184
184
public static Encoding getEncoding (String name ) {
@@ -240,7 +240,7 @@ public DynamicObject getRubyEncoding(Encoding encoding) {
240
240
public synchronized DynamicObject defineEncoding (EncodingDB .Entry encodingEntry , byte [] name , int p , int end ) {
241
241
final Encoding encoding = encodingEntry .getEncoding ();
242
242
final int encodingIndex = encoding .getIndex ();
243
- final DynamicObject rubyEncoding = newRubyEncoding (context , encoding , name , p , end , encodingEntry . isDummy () );
243
+ final DynamicObject rubyEncoding = newRubyEncoding (context , encoding , name , p , end );
244
244
245
245
assert encodingIndex >= ENCODING_LIST_BY_ENCODING_INDEX .size () || ENCODING_LIST_BY_ENCODING_INDEX .get (encodingIndex ) == null ;
246
246
0 commit comments