| Index: dart/sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart b/dart/sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart
|
| index 2e99ab428fd3e295f52d7ce09e39b96537b80329..1938dfc58aec14c0abb81a11fa3369f9633a1808 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart
|
| @@ -154,11 +154,6 @@ class FlatTypeMask implements TypeMask {
|
| || base == compiler.backend.numImplementation;
|
| }
|
|
|
| - bool containsOnlyNull(Compiler compiler) {
|
| - return base == compiler.nullClass
|
| - || base == compiler.backend.nullImplementation;
|
| - }
|
| -
|
| bool containsOnlyBool(Compiler compiler) {
|
| return base == compiler.boolClass
|
| || base == compiler.backend.boolImplementation;
|
| @@ -403,16 +398,6 @@ class FlatTypeMask implements TypeMask {
|
| return new TypeMask(null, EMPTY, isNullable && other.isNullable);
|
| }
|
|
|
| - Iterable<ClassElement> containedClasses(Compiler compiler) {
|
| - Iterable<ClassElement> self = [ base ];
|
| - if (isExact) {
|
| - return self;
|
| - } else {
|
| - Set<ClassElement> subset = containedSubset(this, compiler);
|
| - return (subset == null) ? self : [ self, subset ].expand((x) => x);
|
| - }
|
| - }
|
| -
|
| /**
|
| * Returns whether [element] will be the one used at runtime when being
|
| * invoked on an instance of [cls]. [selector] is used to ensure library
|
| @@ -504,23 +489,6 @@ class FlatTypeMask implements TypeMask {
|
| return selector.appliesUntyped(element, compiler);
|
| }
|
|
|
| - /**
|
| - * Returns whether this [TypeMask] understands [selector].
|
| - */
|
| - bool understands(Selector selector, Compiler compiler) {
|
| - ClassElement cls;
|
| - if (isEmpty) {
|
| - if (!isNullable) return false;
|
| - cls = compiler.backend.nullImplementation;
|
| - } else {
|
| - cls = base;
|
| - }
|
| -
|
| - // Use [lookupMember] because finding abstract members is okay.
|
| - Element element = cls.implementation.lookupMember(selector.name);
|
| - return element != null && selector.appliesUntyped(element, compiler);
|
| - }
|
| -
|
| bool needsNoSuchMethodHandling(Selector selector, Compiler compiler) {
|
| // A call on an empty type mask is either dead code, or a call on
|
| // `null`.
|
|
|