Remove AfdoAdditionalProfileDirs product variable

AfdoAdditionalProfileDirs is unconnected to build/make/core/soong_config.mk and is currently unused. Removing AfdoAdditionalProfileDirs will cut down on complexity when we migrate the support of auto-fdo profiles to Bazel cc rules.

b/258684450 proposes an alternative to support the use cases that were meant to be supported by AfdoAdditionalProfileDirs.

Test: existing go tests
Bug: 253540178
Change-Id: I024e48598a560717a1d6c19b16bde3fe65ff1961
This commit is contained in:
Vinh Tran
2022-11-01 15:33:51 -04:00
parent 877336cc3a
commit 7a8362c252
3 changed files with 2 additions and 7 deletions

View File

@@ -1272,10 +1272,6 @@ func (c *deviceConfig) NativeCoverageEnabledForPath(path string) bool {
return coverage
}
func (c *deviceConfig) AfdoAdditionalProfileDirs() []string {
return c.config.productVariables.AfdoAdditionalProfileDirs
}
func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
return c.config.productVariables.PgoAdditionalProfileDirs
}

View File

@@ -336,8 +336,7 @@ type productVariables struct {
NamespacesToExport []string `json:",omitempty"`
AfdoAdditionalProfileDirs []string `json:",omitempty"`
PgoAdditionalProfileDirs []string `json:",omitempty"`
PgoAdditionalProfileDirs []string `json:",omitempty"`
VndkUseCoreVariant *bool `json:",omitempty"`
VndkSnapshotBuildArtifacts *bool `json:",omitempty"`

View File

@@ -36,7 +36,7 @@ const afdoCFlagsFormat = "-funique-internal-linkage-names -fprofile-sample-accur
func getAfdoProfileProjects(config android.DeviceConfig) []string {
return config.OnceStringSlice(afdoProfileProjectsConfigKey, func() []string {
return append(globalAfdoProfileProjects, config.AfdoAdditionalProfileDirs()...)
return globalAfdoProfileProjects
})
}