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

Unified Diff: pkg/analyzer/lib/src/generated/error_verifier.dart

Issue 728513002: Remove some (but not all) unused methods in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/analyzer/lib/src/generated/error_verifier.dart
diff --git a/pkg/analyzer/lib/src/generated/error_verifier.dart b/pkg/analyzer/lib/src/generated/error_verifier.dart
index ec2f4e3905e262df5efad2eda1e5c6b83a81c222..21aadca68e5259dfdcc6522001b1cfd6238471c7 100644
--- a/pkg/analyzer/lib/src/generated/error_verifier.dart
+++ b/pkg/analyzer/lib/src/generated/error_verifier.dart
@@ -5257,30 +5257,6 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
}
/**
- * Return `true` if the given type represents the class `Future` from the
- * `dart:async` library.
- *
- * @param type the type to be tested
- * @return `true` if the given type represents the class `Future` from the
- * `dart:async` library
- */
- bool _isFuture(DartType type) {
- if (type is InterfaceType) {
- InterfaceType interfaceType = type;
- if (interfaceType.name == "Future") {
- ClassElement element = interfaceType.element;
- if (element != null) {
- LibraryElement library = element.library;
- if (library.name == "dart.async") {
- return true;
- }
- }
- }
- }
- return false;
- }
-
- /**
* Return `true` iff the passed [ClassElement] has a method, getter or setter that
* matches the name of the passed [ExecutableElement] in either the class itself, or one of
* its' mixins that is concrete.

Powered by Google App Engine
This is Rietveld 408576698