diff options
author | Colin Cross <ccross@android.com> | 2019-02-01 16:53:07 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-02-01 17:17:58 -0800 |
commit | 5f692ec219cb0c46db8f8372ec41e8c35315dd70 (patch) | |
tree | 5bb25731a7ab374c44f354254cb70e27ae185b88 /genrule | |
parent | a74ca046dacd052e2fe717ba670b309044fe9d15 (diff) | |
download | build_soong-5f692ec219cb0c46db8f8372ec41e8c35315dd70.tar.gz build_soong-5f692ec219cb0c46db8f8372ec41e8c35315dd70.tar.bz2 build_soong-5f692ec219cb0c46db8f8372ec41e8c35315dd70.zip |
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
Diffstat (limited to 'genrule')
-rw-r--r-- | genrule/genrule.go | 3 | ||||
-rw-r--r-- | genrule/genrule_test.go | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go index 77bc1965..7695ffbd 100644 --- a/genrule/genrule.go +++ b/genrule/genrule.go @@ -528,9 +528,6 @@ type Defaults struct { func (*Defaults) GenerateAndroidBuildActions(ctx android.ModuleContext) { } -func (d *Defaults) DepsMutator(ctx android.BottomUpMutatorContext) { -} - func defaultsFactory() android.Module { return DefaultsFactory() } diff --git a/genrule/genrule_test.go b/genrule/genrule_test.go index 70b9090b..19b22f76 100644 --- a/genrule/genrule_test.go +++ b/genrule/genrule_test.go @@ -519,8 +519,6 @@ func toolFactory() android.Module { return module } -func (t *testTool) DepsMutator(ctx android.BottomUpMutatorContext) {} - func (t *testTool) GenerateAndroidBuildActions(ctx android.ModuleContext) { t.outputFile = android.PathForTesting("out", ctx.ModuleName()) } |