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

Unified Diff: sdk/lib/crypto/hash_utils.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 9 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
Index: sdk/lib/crypto/hash_utils.dart
diff --git a/sdk/lib/crypto/hash_utils.dart b/sdk/lib/crypto/hash_utils.dart
index d0b13cf43f161c992584610c047418119deeac70..4188c5248d30d8df2d193d987f28534245499c33 100644
--- a/sdk/lib/crypto/hash_utils.dart
+++ b/sdk/lib/crypto/hash_utils.dart
@@ -116,8 +116,7 @@ abstract class _HashBase implements Hash {
_bytesToChunk(_pendingData, index);
_updateHash(_currentChunk);
}
- var remaining = len - index;
- _pendingData = _pendingData.getRange(index, remaining);
+ _pendingData = _pendingData.sublist(index, len);
}
}

Powered by Google App Engine
This is Rietveld 408576698