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

Unified Diff: runtime/lib/array_patch.dart

Issue 12041019: Remove List.filled constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove List.filled usage in serialization package. Created 7 years, 11 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: runtime/lib/array_patch.dart
diff --git a/runtime/lib/array_patch.dart b/runtime/lib/array_patch.dart
index 109d951fa34af7987ce8d53060ae0990007a3b52..da5bf73839a3c447543a694c44f5e367c7f9e662 100644
--- a/runtime/lib/array_patch.dart
+++ b/runtime/lib/array_patch.dart
@@ -27,21 +27,6 @@ patch class List<E> {
return result;
}
- /* patch */ factory List.filled(int length, E fill) {
- if ((length is! int) || (length < 0)) {
- _throwArgumentError(length);
- }
- _GrowableObjectArray<E> result =
- new _GrowableObjectArray<E>.withCapacity(length < 4 ? 4 : length);
- result.length = length;
- if (fill != null) {
- for (int i = 0; i < length; i++) {
- result[i] = fill;
- }
- }
- return result;
- }
-
// Factory constructing a mutable List from a parser generated List literal.
// [elements] contains elements that are already type checked.
factory List._fromLiteral(List elements) {
« no previous file with comments | « pkg/serialization/test/serialization_test.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698