From 30a4c9d665f5871c0aef5ad6c77c8ee5003976c6 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Thu, 5 Nov 2020 10:49:45 +0000 Subject: [PATCH] Remove dead code I removed the last use of this method in r.android.com/1450117. Bug: 169395887 Test: m nothing Change-Id: I3bbb600d92dac8d9c3dec0eee14c45cdfd320ce0 --- java/hiddenapi_singleton.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index c3ae75e19..bbc8320fc 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -211,15 +211,6 @@ func stubFlagsRule(ctx android.SingletonContext) { rule.Build(pctx, ctx, "hiddenAPIStubFlagsFile", "hiddenapi stub flags") } -func moduleForGreyListRemovedApis(ctx android.SingletonContext, module android.Module) bool { - switch ctx.ModuleName(module) { - case "api-stubs-docs", "system-api-stubs-docs", "android.car-stubs-docs", "android.car-system-stubs-docs": - return true - default: - return false - } -} - // flagsRule creates a rule to build hiddenapi-flags.csv out of flags.csv files generated for boot image modules and // the unsupported API. func flagsRule(ctx android.SingletonContext) android.Path {