summaryrefslogtreecommitdiff
path: root/java/hiddenapi_monolithic.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-07-19 13:46:18 +0100
committer Paul Duffin <paulduffin@google.com> 2021-07-20 22:02:44 +0100
commit6e9bc01b97b8b91b51f1198eea30501530a31eda (patch)
treea6ccaca39eb91bf594d1021c56b0ca653f3ba392 /java/hiddenapi_monolithic.go
parented12c132c352a6cfa94d824ccb89b4685b1407ad (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_monolithic.go')
-rw-r--r--java/hiddenapi_monolithic.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/java/hiddenapi_monolithic.go b/java/hiddenapi_monolithic.go
index fdcf09335..404b4c133 100644
--- a/java/hiddenapi_monolithic.go
+++ b/java/hiddenapi_monolithic.go
@@ -74,9 +74,6 @@ func newMonolithicHiddenAPIInfo(ctx android.ModuleContext, flagFilesByCategory F
}
}
- // Dedup paths.
- monolithicInfo.dedup()
-
return monolithicInfo
}
@@ -90,15 +87,4 @@ func (i *MonolithicHiddenAPIInfo) append(other *HiddenAPIInfo) {
i.AllFlagsPaths = append(i.AllFlagsPaths, other.AllFlagsPath)
}
-// dedup removes duplicates in all the paths, while maintaining the order in which they were
-// appended.
-func (i *MonolithicHiddenAPIInfo) dedup() {
- i.FlagsFilesByCategory.dedup()
- i.StubFlagsPaths = android.FirstUniquePaths(i.StubFlagsPaths)
- i.AnnotationFlagsPaths = android.FirstUniquePaths(i.AnnotationFlagsPaths)
- i.MetadataPaths = android.FirstUniquePaths(i.MetadataPaths)
- i.IndexPaths = android.FirstUniquePaths(i.IndexPaths)
- i.AllFlagsPaths = android.FirstUniquePaths(i.AllFlagsPaths)
-}
-
var MonolithicHiddenAPIInfoProvider = blueprint.NewProvider(MonolithicHiddenAPIInfo{})