Index: pkg/compiler/lib/src/js_backend/mirrors_data.dart |
diff --git a/pkg/compiler/lib/src/js_backend/mirrors_data.dart b/pkg/compiler/lib/src/js_backend/mirrors_data.dart |
index 55a450fafef819551e06e51d53b98df1a62ec447..65222f7f70223453c76f2c583d0d589e19be4dca 100644 |
--- a/pkg/compiler/lib/src/js_backend/mirrors_data.dart |
+++ b/pkg/compiler/lib/src/js_backend/mirrors_data.dart |
@@ -131,8 +131,6 @@ abstract class MirrorsData { |
bool retainMetadataOfMember(covariant MemberEntity element); |
bool retainMetadataOfParameter(ParameterElement element); |
- bool invokedReflectively(Element element); |
- |
/// Returns true if this element has to be enqueued due to |
/// mirror usage. Might be a subset of [referencedFromMirrorSystem] if |
/// normal tree shaking is still active ([isTreeShakingDisabled] is false). |
@@ -314,22 +312,6 @@ class MirrorsDataImpl implements MirrorsData, MirrorsDataBuilder { |
} |
} |
- bool invokedReflectively(Element element) { |
- if (element.isParameter) { |
- ParameterElement parameter = element; |
- if (invokedReflectively(parameter.functionDeclaration)) return true; |
- } |
- |
- if (element.isField) { |
- if (Elements.isStaticOrTopLevel(element) && |
- (element.isFinal || element.isConst)) { |
- return false; |
- } |
- } |
- |
- return isAccessibleByReflection(element.declaration); |
- } |
- |
/// Sets of elements that are needed by reflection. Computed using |
/// [computeMembersNeededForReflection] on first use. |
Set<ClassElement> _classesNeededForReflection; |