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

Unified Diff: lib/src/utils.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 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
« no previous file with comments | « lib/src/refactor.dart ('k') | lib/testing/content_shell_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index a5cc833471f730481a9417e80765e5342161dc67..f4a16a88ba0912d90b557bc3878ec77c8e1aa12b 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -79,15 +79,6 @@ final String RED_COLOR = '\u001b[31m';
final String MAGENTA_COLOR = '\u001b[35m';
final String NO_COLOR = '\u001b[0m';
-/** Find and return the first element in [list] that satisfies [matcher]. */
-find(List list, bool matcher(elem)) {
- for (var elem in list) {
- if (matcher(elem)) return elem;
- }
- return null;
-}
-
-
/** A future that waits until all added [Future]s complete. */
// TODO(sigmund): this should be part of the futures/core libraries.
class FutureGroup {
@@ -246,14 +237,6 @@ class IntIterator implements Iterator<int> {
}
-// TODO(jmesserly): VM hashCode performance workaround.
-// https://code.google.com/p/dart/issues/detail?id=5746
-class Hashable {
- static int _nextHash = 0;
- final int hashCode = ++_nextHash;
-}
-
-
/**
* Asserts that the condition is true, if not throws an [InternalError].
* Note: unlike "assert" we want these errors to be always on so we get bug
« no previous file with comments | « lib/src/refactor.dart ('k') | lib/testing/content_shell_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698