summaryrefslogtreecommitdiff
path: root/java/hiddenapi_modular.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-11-25 12:18:24 +0000
committer Paul Duffin <paulduffin@google.com> 2022-12-12 17:33:05 +0000
commit458a15bd8af649af4f2d3752ba2e6d0d5c61350b (patch)
tree9c01f61fa5fd306ff9e570b13397d0dbc7daa219 /java/hiddenapi_modular.go
parente3ae3dd6f99a6f9758f1f8540e274285771e5e60 (diff)
Remove IsModuleInVersionedSdk
Previously, as all versioned sdk snapshots have been removed from Android.bp files this method would always return false. This change effectively replaces all calls to it with false, and then optimizes away any unused code. Bug: 260237150 Test: m nothing Change-Id: I1b717ee8345e807bd888451f6e7e3c3a0d391ee2
Diffstat (limited to 'java/hiddenapi_modular.go')
-rw-r--r--java/hiddenapi_modular.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/java/hiddenapi_modular.go b/java/hiddenapi_modular.go
index 5474ae11e..593d7724f 100644
--- a/java/hiddenapi_modular.go
+++ b/java/hiddenapi_modular.go
@@ -1352,14 +1352,6 @@ func deferReportingMissingBootDexJar(ctx android.ModuleContext, module android.M
return true
}
- // A bootclasspath module that is part of a versioned sdk never provides a boot dex jar as there
- // is no equivalently versioned prebuilt APEX file from which it can be obtained. However,
- // versioned bootclasspath modules are processed by Soong so in order to avoid them causing build
- // failures missing boot dex jars need to be deferred.
- if android.IsModuleInVersionedSdk(ctx.Module()) {
- return true
- }
-
// This is called for both platform_bootclasspath and bootclasspath_fragment modules.
//
// A bootclasspath_fragment module should only use the APEX variant of source or prebuilt modules.