From 24c1cbe63e19e6c5145fe8c0391e6334bcdd17b1 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 21 Dec 2023 23:42:56 +0000 Subject: 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 --- android/testing.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'android/testing.go') diff --git a/android/testing.go b/android/testing.go index 39a268b23..3d0300a01 100644 --- a/android/testing.go +++ b/android/testing.go @@ -203,16 +203,6 @@ func (ctx *TestContext) HardCodedPreArchMutators(f RegisterMutatorFunc) { ctx.PreArchMutators(f) } -func (ctx *TestContext) ModuleProvider(m blueprint.Module, p blueprint.AnyProviderKey) any { - value, _ := ctx.Context.ModuleProvider(m, p) - return value -} - -func (ctx *TestContext) ModuleHasProvider(m blueprint.Module, p blueprint.AnyProviderKey) bool { - _, ok := ctx.Context.ModuleProvider(m, p) - return ok -} - func (ctx *TestContext) moduleProvider(m blueprint.Module, p blueprint.AnyProviderKey) (any, bool) { return ctx.Context.ModuleProvider(m, p) } -- cgit v1.2.3-59-g8ed1b