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

Unified Diff: client/html/src/_ListIterators.dart

Issue 9655009: Remove files that have already been ported or do not need to be ported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « client/html/src/_FactoryProviders.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/_ListIterators.dart
diff --git a/client/html/src/_ListIterators.dart b/client/html/src/_ListIterators.dart
deleted file mode 100644
index 92a42d7f590cb04c553b4684344e90e2893b3f0c..0000000000000000000000000000000000000000
--- a/client/html/src/_ListIterators.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-// Iterator for lists with fixed size.
-class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
- _FixedSizeListIterator(List<T> list)
- : super(list),
- _length = list.length;
-
- bool hasNext() => _length > _pos;
-
- final int _length; // Cache list length for faster access.
-}
-
-// Iterator for lists with variable size.
-class _VariableSizeListIterator<T> implements Iterator<T> {
- _VariableSizeListIterator(List<T> list)
- : _list = list,
- _pos = 0;
-
- bool hasNext() => _list.length > _pos;
-
- T next() {
- if (!hasNext()) {
- throw const NoMoreElementsException();
- }
- return _list[_pos++];
- }
-
- final List<T> _list;
- int _pos;
-}
« no previous file with comments | « client/html/src/_FactoryProviders.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698