| 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;
|
| - }
|
| }
|
|
|
| /**
|
|
|