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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart

Issue 99303004: Remove unused API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years 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: dart/sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart b/dart/sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart
index de7fc8fba368ed49b278c029cda719f12971341a..b632e9bdc5eb38d1dc0a067a8e931d34d49bc370 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/types/union_type_mask.dart
@@ -219,10 +219,6 @@ class UnionTypeMask implements TypeMask {
});
}
- bool containsOnlyNull(Compiler compiler) {
- return disjointMasks.every((mask) => mask.containsOnlyNull(compiler));
- }
-
bool containsOnlyBool(Compiler compiler) {
return disjointMasks.every((mask) => mask.containsOnlyBool(compiler));
}
@@ -249,15 +245,6 @@ class UnionTypeMask implements TypeMask {
ClassElement singleClass(Compiler compiler) => null;
- Iterable<ClassElement> containedClasses(Compiler compiler) {
- return disjointMasks.expand(
- (TypeMask mask) => mask.containedClasses(compiler));
- }
-
- bool understands(Selector selector, Compiler compiler) {
- return disjointMasks.any((e) => e.understands(selector, compiler));
- }
-
bool needsNoSuchMethodHandling(Selector selector, Compiler compiler) {
return disjointMasks.any(
(e) => e.needsNoSuchMethodHandling(selector, compiler));

Powered by Google App Engine
This is Rietveld 408576698