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

Unified Diff: lib/compiler/implementation/util/link_implementation.dart

Issue 10917110: Revert "Collect the types used in is-checks in the resolver phase." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/compiler/implementation/util/link.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/util/link_implementation.dart
diff --git a/lib/compiler/implementation/util/link_implementation.dart b/lib/compiler/implementation/util/link_implementation.dart
index 1331f2e970be92f7a10e53a726c57d57aee31f65..a237a307a12f92ac39e9f09a45101096b4434d21 100644
--- a/lib/compiler/implementation/util/link_implementation.dart
+++ b/lib/compiler/implementation/util/link_implementation.dart
@@ -70,11 +70,6 @@ class LinkTail<T> implements EmptyLink<T> {
bool isEmpty() => true;
void forEach(void f(T element)) {}
-
- bool equals(other) {
- if (other is !Link<T>) return false;
- return other.isEmpty();
- }
}
class LinkEntry<T> implements Link<T> {
@@ -139,19 +134,6 @@ class LinkEntry<T> implements Link<T> {
f(link.head);
}
}
-
- bool equals(other) {
- if (other is !Link<T>) return false;
- Link<T> myElements = this;
- while (!myElements.isEmpty() && !other.isEmpty()) {
- if (myElements.head != other.head) {
- return false;
- }
- myElements = myElements.tail;
- other = other.tail;
- }
- return myElements.isEmpty() && other.isEmpty();
- }
}
class LinkBuilderImplementation<T> implements LinkBuilder<T> {
« no previous file with comments | « lib/compiler/implementation/util/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698