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

Unified Diff: lib/compiler/implementation/lib/mockimpl.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: lib/compiler/implementation/lib/mockimpl.dart
diff --git a/lib/compiler/implementation/lib/mockimpl.dart b/lib/compiler/implementation/lib/mockimpl.dart
index e3484cc7084cb31deb9c8b087178725221e2ac4a..2a24529fe692ece1cf494cf7e8501673150e27e2 100644
--- a/lib/compiler/implementation/lib/mockimpl.dart
+++ b/lib/compiler/implementation/lib/mockimpl.dart
@@ -56,16 +56,3 @@ class StringBase {
return array;
}
}
-
-class ListFactory<E> {
- factory List([int length]) => Primitives.newList(length);
- factory List.from(Iterable<E> other) {
- List<E> result = new List<E>();
- // TODO(ahe): Use for-in when it is implemented correctly.
- Iterator<E> iterator = other.iterator();
- while (iterator.hasNext()) {
- result.add(iterator.next());
- }
- return result;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698