Remove cc.ModuleContext.module()
cc.ModuleContext.module() returns a *cc.Module, and is left over from when the cc package tried to use inheritance. Remove it and the last few users. Change-Id: I9b42ca59689c1b0ada7980fbec923747ed3a53d3
This commit is contained in:
@@ -23,7 +23,6 @@ import (
|
||||
"android/soong/glob"
|
||||
|
||||
"github.com/google/blueprint"
|
||||
"github.com/google/blueprint/proptools"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -90,7 +89,6 @@ type Module interface {
|
||||
GenerateAndroidBuildActions(ModuleContext)
|
||||
|
||||
base() *ModuleBase
|
||||
Disable()
|
||||
Enabled() bool
|
||||
Target() Target
|
||||
InstallInData() bool
|
||||
@@ -294,10 +292,6 @@ func (a *ModuleBase) DeviceSupported() bool {
|
||||
a.hostAndDeviceProperties.Device_supported
|
||||
}
|
||||
|
||||
func (a *ModuleBase) Disable() {
|
||||
a.commonProperties.Enabled = proptools.BoolPtr(false)
|
||||
}
|
||||
|
||||
func (a *ModuleBase) Enabled() bool {
|
||||
if a.commonProperties.Enabled == nil {
|
||||
return a.Os().Class != HostCross
|
||||
|
Reference in New Issue
Block a user