diff options
author | 2025-02-24 16:18:18 -0800 | |
---|---|---|
committer | 2025-02-24 19:04:46 -0800 | |
commit | d143f3e35485b8ad9f5be0bede0f030874025240 (patch) | |
tree | 4beb9463f2f21737bf1d99aa4e550bd9dd26c92a /android/module.go | |
parent | 324d19b8b5a20678586d4e8e4b894a2bba70a2ae (diff) |
Remove DistFiles from AndroidMk datastructures
The code that collects dists also supports getting them from
OutputFiles. Switch the few remaining usages of AndroidMk-based
disted files over to OutputFiles, and remove DistFiles from the
AndroidMk datastructures.
This should allow us to clean up more AndroidMk code in a followup
cl.
Bug: 398938465
Test: Confirmed that the ninja files for "m nothing dist" don't change after this cl.
Change-Id: I9eaed21018ef73ec36276556e7daa7201b272009
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/android/module.go b/android/module.go index 996c64e52..d387c2cf3 100644 --- a/android/module.go +++ b/android/module.go @@ -613,17 +613,6 @@ func (t TaggedDistFiles) merge(other TaggedDistFiles) TaggedDistFiles { return t } -func MakeDefaultDistFiles(paths ...Path) TaggedDistFiles { - for _, p := range paths { - if p == nil { - panic("The path to a dist file cannot be nil.") - } - } - - // The default OutputFile tag is the empty "" string. - return TaggedDistFiles{DefaultDistTag: paths} -} - type hostAndDeviceProperties struct { // If set to true, build a variant of the module for the host. Defaults to false. Host_supported *bool |