Merge "Remove unused Module.visibility() method"
This commit is contained in:
commit
717e50c630
|
@ -257,9 +257,6 @@ type Module interface {
|
||||||
// Get information about the properties that can contain visibility rules.
|
// Get information about the properties that can contain visibility rules.
|
||||||
visibilityProperties() []visibilityProperty
|
visibilityProperties() []visibilityProperty
|
||||||
|
|
||||||
// Get the visibility rules that control the visibility of this module.
|
|
||||||
visibility() []string
|
|
||||||
|
|
||||||
RequiredModuleNames() []string
|
RequiredModuleNames() []string
|
||||||
HostRequiredModuleNames() []string
|
HostRequiredModuleNames() []string
|
||||||
TargetRequiredModuleNames() []string
|
TargetRequiredModuleNames() []string
|
||||||
|
@ -809,15 +806,6 @@ func (m *ModuleBase) visibilityProperties() []visibilityProperty {
|
||||||
return m.visibilityPropertyInfo
|
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 {
|
func (m *ModuleBase) Target() Target {
|
||||||
return m.commonProperties.CompileTarget
|
return m.commonProperties.CompileTarget
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue