summaryrefslogtreecommitdiff
path: root/runtime/hidden_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/hidden_api.cc')
-rw-r--r--runtime/hidden_api.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/hidden_api.cc b/runtime/hidden_api.cc
index f4f46eec96..1ad59ff08d 100644
--- a/runtime/hidden_api.cc
+++ b/runtime/hidden_api.cc
@@ -496,13 +496,9 @@ bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod acce
return false;
}
- EnforcementPolicy testApiPolicy = runtime->GetTestApiEnforcementPolicy();
-
bool deny_access = false;
if (hiddenApiPolicy == EnforcementPolicy::kEnabled) {
- if (api_list.IsTestApi() &&
- (testApiPolicy == EnforcementPolicy::kDisabled ||
- compatFramework.IsChangeEnabled(kAllowTestApiAccess))) {
+ if (api_list.IsTestApi() && compatFramework.IsChangeEnabled(kAllowTestApiAccess)) {
deny_access = false;
} else {
switch (api_list.GetMaxAllowedSdkVersion()) {