summaryrefslogtreecommitdiff
path: root/android/provider.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-21 23:42:56 +0000
committer Spandan Das <spandandas@google.com> 2023-12-22 00:06:05 +0000
commit24c1cbe63e19e6c5145fe8c0391e6334bcdd17b1 (patch)
tree3e2d8d4760880b6edbe18c919b430f23c5b02785 /android/provider.go
parenta41b8ecc62e0b91357e9067243488f53c27b5209 (diff)
Reland "Remove non-generic provider APIs"
There are no more callers to the non-generic provider APIs, remove them. This reapplies I4d336340e630643f98531787a81e0f1f18ec108d after I79736e44d85bc6e8c97f08ebf783b40533a3e6ae removed a newly introduced usage. Bug: 316410648 Change-Id: I152f8e5ef8330b811d3f42f8c2c73943ac0979bb Test: builds
Diffstat (limited to 'android/provider.go')
-rw-r--r--android/provider.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/provider.go b/android/provider.go
index b2cc7c06d..3b9c5d2ba 100644
--- a/android/provider.go
+++ b/android/provider.go
@@ -79,7 +79,7 @@ func SingletonModuleProvider[K any](ctx SingletonModuleProviderContext, module b
// SetProviderContext is a helper interface that is a subset of ModuleContext, BottomUpMutatorContext, or
// TopDownMutatorContext for use in SetProvider.
type SetProviderContext interface {
- SetProvider(provider blueprint.AnyProviderKey, value any)
+ setProvider(provider blueprint.AnyProviderKey, value any)
}
var _ SetProviderContext = BaseModuleContext(nil)
@@ -95,7 +95,7 @@ var _ SetProviderContext = TopDownMutatorContext(nil)
// SetProviderContext is a helper interface that accepts ModuleContext, BottomUpMutatorContext, or
// TopDownMutatorContext.
func SetProvider[K any](ctx SetProviderContext, provider blueprint.ProviderKey[K], value K) {
- ctx.SetProvider(provider, value)
+ ctx.setProvider(provider, value)
}
var _ OtherModuleProviderContext = (*otherModuleProviderAdaptor)(nil)