summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2024-07-19 21:54:27 +0000
committer Jihoon Kang <jihoonkang@google.com> 2024-07-19 21:54:27 +0000
commit910d78e869ab6dc2a183dd8e6c7743c7cb3fd1ac (patch)
tree2d37d074c047be4ff2b39fba6bbb9c4172891616 /api/api.go
parent4c5fbae087f40088523089993abe4249fdb98fb7 (diff)
Remove combined_apis_defaults module type
This change removes the combined_apis_defaults module type, given that combined_apis module type is not defaultable as it creates a default module in its module factory. The only usage of this module type has been removed with https://r.android.com/3184819 . Test: m nothing --no-skip-soong-tests Bug: 349800749 Change-Id: Ib78eb965124b2c80e871b1bc022011843ebaab9a
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/api/api.go b/api/api.go
index d4db49e90a01..ce7b7993d212 100644
--- a/api/api.go
+++ b/api/api.go
@@ -63,7 +63,6 @@ type CombinedApisProperties struct {
type CombinedApis struct {
android.ModuleBase
- android.DefaultableModuleBase
properties CombinedApisProperties
}
@@ -74,7 +73,6 @@ func init() {
func registerBuildComponents(ctx android.RegistrationContext) {
ctx.RegisterModuleType("combined_apis", combinedApisModuleFactory)
- ctx.RegisterModuleType("combined_apis_defaults", CombinedApisModuleDefaultsFactory)
}
var PrepareForCombinedApisTest = android.FixtureRegisterWithContext(registerBuildComponents)
@@ -568,7 +566,6 @@ func combinedApisModuleFactory() android.Module {
module := &CombinedApis{}
module.AddProperties(&module.properties)
android.InitAndroidModule(module)
- android.InitDefaultableModule(module)
android.AddLoadHook(module, func(ctx android.LoadHookContext) { module.createInternalModules(ctx) })
return module
}
@@ -605,16 +602,3 @@ func remove(s []string, v string) []string {
}
return s2
}
-
-// Defaults
-type CombinedApisModuleDefaults struct {
- android.ModuleBase
- android.DefaultsModuleBase
-}
-
-func CombinedApisModuleDefaultsFactory() android.Module {
- module := &CombinedApisModuleDefaults{}
- module.AddProperties(&CombinedApisProperties{})
- android.InitDefaultsModule(module)
- return module
-}