Chromium Code Reviews

Unified Diff: sdk/lib/collection/collections.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/collection/collections.dart
diff --git a/sdk/lib/collection/collections.dart b/sdk/lib/collection/collections.dart
index b35a52f168c80ab7bc21b3f495794a091ece0f9f..30e9642289fac87ee9c0190e27d6f5fac00ac6da 100644
--- a/sdk/lib/collection/collections.dart
+++ b/sdk/lib/collection/collections.dart
@@ -131,10 +131,10 @@ class IterableMixinWorkaround {
}
}
if (retained.length == length) return;
+ list.length = retained.length;
for (int i = 0; i < retained.length; i++) {
list[i] = retained[i];
}
- list.length = retained.length;
}
/**

Powered by Google App Engine