Merge "Remove unused Module.visibility() method" am: 717e50c630 am: 5c9c0e79e0

Change-Id: Iebd9e08a399a827bda6441326d7884ae5cd1bbf7
This commit is contained in:
Treehugger Robot 2020-05-13 12:22:59 +00:00 committed by Automerger Merge Worker
commit 8c30912b64

View file

@ -257,9 +257,6 @@ type Module interface {
// Get information about the properties that can contain visibility rules.
visibilityProperties() []visibilityProperty
// Get the visibility rules that control the visibility of this module.
visibility() []string
RequiredModuleNames() []string
HostRequiredModuleNames() []string
TargetRequiredModuleNames() []string
@ -809,15 +806,6 @@ func (m *ModuleBase) visibilityProperties() []visibilityProperty {
return m.visibilityPropertyInfo
}
func (m *ModuleBase) visibility() []string {
// The soong_namespace module does not initialize the primaryVisibilityProperty.
if m.primaryVisibilityProperty != nil {
return m.primaryVisibilityProperty.getStrings()
} else {
return nil
}
}
func (m *ModuleBase) Target() Target {
return m.commonProperties.CompileTarget
}