Remove empty DepsMutator methods
Add an empty DepsMutator to ModuleBase so it doesn't have to be implemented on every module that doesn't need it. Test: all soong tests Change-Id: I545a832a0dbf27386d3080377a75ea482cd9ce59
This commit is contained in:
@@ -93,9 +93,6 @@ type headerModule struct {
|
||||
licensePath android.ModuleSrcPath
|
||||
}
|
||||
|
||||
func (m *headerModule) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
}
|
||||
|
||||
func getHeaderInstallDir(ctx android.ModuleContext, header android.Path, from string,
|
||||
to string) android.OutputPath {
|
||||
// Output path is the sysroot base + "usr/include" + to directory + directory component
|
||||
@@ -210,9 +207,6 @@ type versionedHeaderModule struct {
|
||||
licensePath android.ModuleSrcPath
|
||||
}
|
||||
|
||||
func (m *versionedHeaderModule) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
}
|
||||
|
||||
func (m *versionedHeaderModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
if String(m.properties.License) == "" {
|
||||
ctx.PropertyErrorf("license", "field is required")
|
||||
@@ -335,9 +329,6 @@ type preprocessedHeadersModule struct {
|
||||
licensePath android.ModuleSrcPath
|
||||
}
|
||||
|
||||
func (m *preprocessedHeadersModule) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
}
|
||||
|
||||
func (m *preprocessedHeadersModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
if String(m.properties.License) == "" {
|
||||
ctx.PropertyErrorf("license", "field is required")
|
||||
|
Reference in New Issue
Block a user