summaryrefslogtreecommitdiff
path: root/android/apex.go
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2021-05-26 16:57:39 +0100
committer Martin Stjernholm <mast@google.com> 2021-05-26 17:05:17 +0100
commitbe10503d3a53e3547e36e7bbe17f7661e925a950 (patch)
tree291e38f2958531e3b454b500ef741f66c3b158d2 /android/apex.go
parentbcf5304eaba149419905b2c8b5e21f2c168bdbbd (diff)
Drop "prebuilt_" prefixes from names registered in ApexInfo.InApexXxx.
Neither InApexVariants nor InApexModules should have them. This allows us to get rid of InApexVariantByBaseName as well. Test: m nothing Test: m nothing SOONG_CONFIG_art_module_source_build=false Bug: 180325915 Change-Id: Icbe4e025ce1a4c8dd258ff95d326ca2f27905188
Diffstat (limited to 'android/apex.go')
-rw-r--r--android/apex.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/android/apex.go b/android/apex.go
index 4b744364a..a79b207a8 100644
--- a/android/apex.go
+++ b/android/apex.go
@@ -117,19 +117,6 @@ func (i ApexInfo) InApexVariant(apexVariant string) bool {
return false
}
-// InApexByBaseName tells whether this apex variant of the module is part of the given apexVariant
-// or not, where the APEX is specified by its canonical base name, i.e. typically beginning with
-// "com.android.". In particular this function doesn't differentiate between source and prebuilt
-// APEXes, where the latter may have "prebuilt_" prefixes.
-func (i ApexInfo) InApexVariantByBaseName(apexVariant string) bool {
- for _, a := range i.InApexVariants {
- if RemoveOptionalPrebuiltPrefix(a) == apexVariant {
- return true
- }
- }
- return false
-}
-
func (i ApexInfo) InApexModule(apexModuleName string) bool {
for _, a := range i.InApexModules {
if a == apexModuleName {