Remove unused frozenVersions() method
Bug: 143678475 Test: m nothing Change-Id: Ia5d417cfccfcd90b02a95b5b806b211b97e340db
This commit is contained in:
parent
bf857716a1
commit
7264c69892
1 changed files with 0 additions and 21 deletions
21
sdk/sdk.go
21
sdk/sdk.go
|
@ -88,27 +88,6 @@ func (s *sdk) snapshot() bool {
|
||||||
return s.properties.Snapshot
|
return s.properties.Snapshot
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sdk) frozenVersions(ctx android.BaseModuleContext) []string {
|
|
||||||
if s.snapshot() {
|
|
||||||
panic(fmt.Errorf("frozenVersions() called for sdk_snapshot %q", ctx.ModuleName()))
|
|
||||||
}
|
|
||||||
versions := []string{}
|
|
||||||
ctx.WalkDeps(func(child android.Module, parent android.Module) bool {
|
|
||||||
depTag := ctx.OtherModuleDependencyTag(child)
|
|
||||||
if depTag == sdkMemberDepTag {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
if versionedDepTag, ok := depTag.(sdkMemberVesionedDepTag); ok {
|
|
||||||
v := versionedDepTag.version
|
|
||||||
if v != "current" && !android.InList(v, versions) {
|
|
||||||
versions = append(versions, versionedDepTag.version)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
return android.SortedUniqueStrings(versions)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *sdk) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
func (s *sdk) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
if !s.snapshot() {
|
if !s.snapshot() {
|
||||||
// We don't need to create a snapshot out of sdk_snapshot.
|
// We don't need to create a snapshot out of sdk_snapshot.
|
||||||
|
|
Loading…
Reference in a new issue