Delete apexBundle#prebuiltFileToDelete.

Nothing is reading this field. Delete it.

Test: presubmits
Change-Id: I47d15b7c4e2aca4b251059305c27c2a9b5f05b1f
This commit is contained in:
Jingwen Chen
2023-01-30 12:07:19 +00:00
parent 80f1ef15cc
commit fb708e99f7

View File

@@ -492,8 +492,6 @@ type apexBundle struct {
// Optional list of lint report zip files for apexes that contain java or app modules
lintReports android.Paths
prebuiltFileToDelete string
isCompressed bool
// Path of API coverage generate file
@@ -2344,12 +2342,6 @@ func (a *apexBundle) depVisitor(vctx *visitorContext, ctx android.ModuleContext,
} else {
ctx.ModuleErrorf("certificate dependency %q must be an android_app_certificate module", depName)
}
case android.PrebuiltDepTag:
// If the prebuilt is force disabled, remember to delete the prebuilt file
// that might have been installed in the previous builds
if prebuilt, ok := child.(prebuilt); ok && prebuilt.isForceDisabled() {
a.prebuiltFileToDelete = prebuilt.InstallFilename()
}
}
return false
}