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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 2609063002: Further reduce use of Element in codegen. (Closed)
Patch Set: Created 3 years, 12 months 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/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 44bdd0e73fe9a74cb6d344dfb896d692f7e65475..e67800c09dbcd00418cddfd66f548d5d980a455d 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -676,23 +676,6 @@ class Elements {
return null;
}
- static bool isNumberOrStringSupertype(
- Element element, CommonElements commonElements) {
- LibraryElement coreLibrary = commonElements.coreLibrary;
- return (element == coreLibrary.find('Comparable'));
- }
-
- static bool isStringOnlySupertype(
- Element element, CommonElements commonElements) {
- LibraryElement coreLibrary = commonElements.coreLibrary;
- return element == coreLibrary.find('Pattern');
- }
-
- static bool isListSupertype(Element element, CommonElements commonElements) {
- LibraryElement coreLibrary = commonElements.coreLibrary;
- return element == coreLibrary.find('Iterable');
- }
-
/// A `compareTo` function that places [Element]s in a consistent order based
/// on the source code order.
static int compareByPosition(Element a, Element b) {

Powered by Google App Engine
This is Rietveld 408576698