File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
sdk/lib/_internal/wasm/lib Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ abstract final class StringBase implements String {
82
82
// TODO(lrn): See if this limit can be tweaked.
83
83
static const int _maxJoinReplaceOneByteStringLength = 500 ;
84
84
85
- StringBase ._();
86
-
87
85
int get hashCode {
88
86
int hash = getHash (this );
89
87
if (hash != 0 ) return hash;
@@ -259,10 +257,6 @@ abstract final class StringBase implements String {
259
257
260
258
String operator [](int index) => String .fromCharCode (codeUnitAt (index));
261
259
262
- int codeUnitAt (int index); // Implemented in the subclasses.
263
-
264
- int get length; // Implemented in the subclasses.
265
-
266
260
bool get isEmpty {
267
261
return this .length == 0 ;
268
262
}
@@ -1012,9 +1006,7 @@ final class OneByteString extends StringBase {
1012
1006
@pragma ("wasm:entry-point" )
1013
1007
WasmIntArray <WasmI8 > _array;
1014
1008
1015
- OneByteString ._withLength (int length)
1016
- : _array = WasmIntArray <WasmI8 >(length),
1017
- super ._();
1009
+ OneByteString ._withLength (int length) : _array = WasmIntArray <WasmI8 >(length);
1018
1010
1019
1011
// Same hash as VM
1020
1012
@override
@@ -1349,8 +1341,7 @@ final class TwoByteString extends StringBase {
1349
1341
WasmIntArray <WasmI16 > _array;
1350
1342
1351
1343
TwoByteString ._withLength (int length)
1352
- : _array = WasmIntArray <WasmI16 >(length),
1353
- super ._();
1344
+ : _array = WasmIntArray <WasmI16 >(length);
1354
1345
1355
1346
// Same hash as VM
1356
1347
@override
You can’t perform that action at this time.
0 commit comments