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

Unified Diff: pkg/compiler/lib/src/util/link.dart

Issue 1146943002: Change Link to List in FunctionSignature. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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: pkg/compiler/lib/src/util/link.dart
diff --git a/pkg/compiler/lib/src/util/link.dart b/pkg/compiler/lib/src/util/link.dart
index 648e185cdbc7b356081a5ba05bb398cbcedb7116..b45ea6cd5bb3508043b96419fe4357afdc94ee29 100644
--- a/pkg/compiler/lib/src/util/link.dart
+++ b/pkg/compiler/lib/src/util/link.dart
@@ -56,16 +56,6 @@ class Link<T> {
return result;
}
- /// Invokes `fn` for every item in the linked list and returns the results
- /// in a [Set].
- Set mapToSet(dynamic fn(T item)) {
- Set result = new Set();
- for (Link<T> link = this; !link.isEmpty; link = link.tail) {
- result.add(fn(link.head));
- }
- return result;
- }
-
bool get isEmpty => true;
Link<T> reverse() => this;
« no previous file with comments | « pkg/compiler/lib/src/universe/universe.dart ('k') | tests/compiler/dart2js/concrete_type_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698