diff options
Diffstat (limited to 'java/droidstubs.go')
-rw-r--r-- | java/droidstubs.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/java/droidstubs.go b/java/droidstubs.go index 6b8d21f8c..e7ccc1ba4 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -18,7 +18,6 @@ import ( "fmt" "path/filepath" "regexp" - "sort" "strings" "github.com/google/blueprint/proptools" @@ -894,28 +893,6 @@ var ( } ) -// A helper function that returns the api surface of the corresponding java_api_contribution Bazel target -// The api_surface is populated using the naming convention of the droidstubs module. -func bazelApiSurfaceName(name string) string { - // Sort the keys so that longer strings appear first - // Otherwise substrings like system will match both system and system_server - sortedKeys := make([]string, 0) - for key := range droidstubsModuleNamingToSdkKind { - sortedKeys = append(sortedKeys, key) - } - sort.Slice(sortedKeys, func(i, j int) bool { - return len(sortedKeys[i]) > len(sortedKeys[j]) - }) - for _, sortedKey := range sortedKeys { - if strings.Contains(name, sortedKey) { - sdkKind := droidstubsModuleNamingToSdkKind[sortedKey] - return sdkKind.String() + "api" - } - } - // Default is publicapi - return android.SdkPublic.String() + "api" -} - func StubsDefaultsFactory() android.Module { module := &DocDefaults{} |