diff options
author | 2021-07-19 13:46:18 +0100 | |
---|---|---|
committer | 2021-07-20 22:02:44 +0100 | |
commit | 6e9bc01b97b8b91b51f1198eea30501530a31eda (patch) | |
tree | a6ccaca39eb91bf594d1021c56b0ca653f3ba392 /java/hiddenapi_modular.go | |
parent | ed12c132c352a6cfa94d824ccb89b4685b1407ad (diff) |
Remove unnecessary dedup logic
The CreateClasspathElements function makes sure that each standalone
library and bootclasspath_fragment on the platform bootclasspath
appear once and once only and each file extracted is unique to the
module so there is no chance that any duplicate files will be used.
Bug: 194063708
Test: m out/soong/hiddenapi/hiddenapi-flags.csv
- check that this does not change the contents.
Change-Id: I60c02baa4d179293ee0f305375afaa3a8c98e112
Diffstat (limited to 'java/hiddenapi_modular.go')
-rw-r--r-- | java/hiddenapi_modular.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/java/hiddenapi_modular.go b/java/hiddenapi_modular.go index 654ebb743..86ab8253e 100644 --- a/java/hiddenapi_modular.go +++ b/java/hiddenapi_modular.go @@ -510,14 +510,6 @@ func (s FlagFilesByCategory) append(other FlagFilesByCategory) { } } -// dedup removes duplicates in the flag files, while maintaining the order in which they were -// appended. -func (s FlagFilesByCategory) dedup() { - for category, paths := range s { - s[category] = android.FirstUniquePaths(paths) - } -} - // HiddenAPIInfo contains information provided by the hidden API processing. // // That includes paths resolved from HiddenAPIFlagFileProperties and also generated by hidden API |