summaryrefslogtreecommitdiff
path: root/java/dexpreopt.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-06-12 21:17:29 +0000
committer Spandan Das <spandandas@google.com> 2024-06-12 21:17:29 +0000
commit8a296baab89cc44987e654b942f28a2cbba84088 (patch)
treeb2d81860210244a2000b9bc787de8a319d4501e2 /java/dexpreopt.go
parenta551b011d0f25e5d41ec63922e69f8b86539920e (diff)
Remove unused dexpreopt install path function
`odexOnSystemOther` (presumably) returns a boolean indicating whether .odex/.vdex files should be installed in system_other.img. The installation location logic is now colocated in build/soong/dexpreopt package, so we can delete this unused function. Test: go build ./java Change-Id: Ibd1a3a0b945f8d7953baad05cbaf65cb58b5a05a
Diffstat (limited to 'java/dexpreopt.go')
-rw-r--r--java/dexpreopt.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/java/dexpreopt.go b/java/dexpreopt.go
index 832b85036..4fe3664fe 100644
--- a/java/dexpreopt.go
+++ b/java/dexpreopt.go
@@ -312,10 +312,6 @@ func dexpreoptToolDepsMutator(ctx android.BottomUpMutatorContext) {
dexpreopt.RegisterToolDeps(ctx)
}
-func (d *dexpreopter) odexOnSystemOther(ctx android.ModuleContext, libName string, installPath android.InstallPath) bool {
- return dexpreopt.OdexOnSystemOtherByName(libName, android.InstallPathToOnDevicePath(ctx, installPath), dexpreopt.GetGlobalConfig(ctx))
-}
-
// Returns the install path of the dex jar of a module.
//
// Do not rely on `ApexInfo.ApexVariationName` because it can be something like "apex1000", rather