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

Unified Diff: pkg/analyzer/lib/src/generated/constant.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/constant.dart
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
index a361edefe00f2c4ed3203be58e024e3d5945e48b..e94ade9491c1437f881cb5ff046357876bec7265 100644
--- a/pkg/analyzer/lib/src/generated/constant.dart
+++ b/pkg/analyzer/lib/src/generated/constant.dart
@@ -1474,24 +1474,6 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> {
_error(node, null);
return null;
}
-
- /**
- * Return `true` if the given element represents the 'length' getter in class 'String'.
- *
- * @param element the element being tested.
- * @return
- */
- bool _isStringLength(Element element) {
- if (element is! PropertyAccessorElement) {
- return false;
- }
- PropertyAccessorElement accessor = element as PropertyAccessorElement;
- if (!accessor.isGetter || accessor.name != "length") {
- return false;
- }
- Element parent = accessor.enclosingElement;
- return parent == _typeProvider.stringType.element;
- }
}
/**

Powered by Google App Engine
This is Rietveld 408576698