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

Unified Diff: runtime/lib/array.dart

Issue 10878077: Unify list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 15d3219910bbda047ca532167fd348aac57f197b..b8c3e3b19e81aa73bcdaa1031a372d83e6f5b3c4 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -2,24 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class ListFactory<E> {
-
- factory List.from(Iterable<E> other) {
- GrowableObjectArray<E> list = new GrowableObjectArray<E>();
- for (final e in other) {
- list.add(e);
- }
- return list;
- }
-
- factory List([int length = null]) {
- if (length === null) {
- return new GrowableObjectArray<E>();
- } else {
- return new ObjectArray<E>(length);
- }
- }
-}
// TODO(srdjan): Use shared array implementation.
class ObjectArray<E> implements List<E> {

Powered by Google App Engine
This is Rietveld 408576698