Index: sdk/lib/convert/utf.dart |
diff --git a/sdk/lib/convert/utf.dart b/sdk/lib/convert/utf.dart |
index 332598759af6b4276d9e36506699df1f656df2ae..59a21921866fb917a790d67f297fc64454644d61 100644 |
--- a/sdk/lib/convert/utf.dart |
+++ b/sdk/lib/convert/utf.dart |
@@ -436,12 +436,13 @@ class _Utf8Decoder { |
void addSingleBytes(int from, int to) { |
assert(from >= startIndex && from <= endIndex); |
assert(to >= startIndex && to <= endIndex); |
- if (from == 0 && to == codeUnits.length) { |
- _stringSink.write(new String.fromCharCodes(codeUnits)); |
- } else { |
- _stringSink.write( |
- new String.fromCharCodes(codeUnits.sublist(from, to))); |
- } |
+ _stringSink.write(new String.fromCharCodes(codeUnits, from, to)); |
+ // if (from == 0 && to == codeUnits.length) { |
+ // _stringSink.write(new String.fromCharCodes(codeUnits)); |
+ // } else { |
+ // _stringSink.write( |
+ // new String.fromCharCodes(codeUnits.sublist(from, to))); |
+ // } |
srdjan
2014/09/17 15:31:58
Remove dead code?
Lasse Reichstein Nielsen
2014/09/18 09:03:00
Done.
|
} |
int i = startIndex; |