Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(957)

Unified Diff: sdk/lib/convert/ascii.dart

Issue 1100873003: Avoid checking Uint8List for non-Latin-1 characters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/ascii.dart
diff --git a/sdk/lib/convert/ascii.dart b/sdk/lib/convert/ascii.dart
index 1caffe05afb8c4735312b7b9e699989be7d80a48..c8b59037711f2c08d9ada6fc4877076f8c8247d4 100644
--- a/sdk/lib/convert/ascii.dart
+++ b/sdk/lib/convert/ascii.dart
@@ -185,7 +185,6 @@ abstract class _UnicodeSubsetDecoder extends Converter<List<int>, String> {
int byteCount = bytes.length;
RangeError.checkValidRange(start, end, byteCount);
if (end == null) end = byteCount;
- int length = end - start;
for (int i = start; i < end; i++) {
int byte = bytes[i];
« no previous file with comments | « no previous file | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698