Remove unused frozenVersions() method

Bug: 143678475
Test: m nothing
Change-Id: Ia5d417cfccfcd90b02a95b5b806b211b97e340db
This commit is contained in:
Paul Duffin 2019-11-28 14:28:42 +00:00
parent bf857716a1
commit 7264c69892

View file

@ -88,27 +88,6 @@ func (s *sdk) snapshot() bool {
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) {
if !s.snapshot() {
// We don't need to create a snapshot out of sdk_snapshot.