diff options
author | 2024-06-25 22:47:35 +0000 | |
---|---|---|
committer | 2024-06-25 22:47:35 +0000 | |
commit | 0ef9f7740a160b67c6e07c0f124103b7f7afffdf (patch) | |
tree | 055d89d91be3b0dfdc485abbb5ef3e863cd4a65c /java/sdk_library.go | |
parent | 2a26b1326b80d3d45c6f8ec1f143eb8fefa89154 (diff) |
Remove the unused apiFileTag
This change removes the unused `apiScope.apiFileTag` and its
`depInfoExtractor` function.
Test: m nothing --no-skip-soong-tests
Change-Id: I640bee3a188be03742559e31ce4fbc4475dbd3ba
Diffstat (limited to 'java/sdk_library.go')
-rw-r--r-- | java/sdk_library.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index 68046c6b3..c3d542cec 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -118,9 +118,6 @@ type apiScope struct { // The tag to use to depend on the stubs source module (if separate from the API module). stubsSourceTag scopeDependencyTag - // The tag to use to depend on the API file generating module (if separate from the stubs source module). - apiFileTag scopeDependencyTag - // The tag to use to depend on the stubs source and API module. stubsSourceAndApiTag scopeDependencyTag @@ -195,11 +192,6 @@ func initApiScope(scope *apiScope) *apiScope { apiScope: scope, depInfoExtractor: (*scopePaths).extractStubsSourceInfoFromDep, } - scope.apiFileTag = scopeDependencyTag{ - name: name + "-api", - apiScope: scope, - depInfoExtractor: (*scopePaths).extractApiInfoFromDep, - } scope.stubsSourceAndApiTag = scopeDependencyTag{ name: name + "-stubs-source-and-api", apiScope: scope, @@ -804,12 +796,6 @@ func (paths *scopePaths) extractApiInfoFromApiStubsProvider(provider ApiStubsPro return combinedError } -func (paths *scopePaths) extractApiInfoFromDep(ctx android.ModuleContext, dep android.Module) error { - return paths.treatDepAsApiStubsProvider(dep, func(provider ApiStubsProvider) error { - return paths.extractApiInfoFromApiStubsProvider(provider, Everything) - }) -} - func (paths *scopePaths) extractStubsSourceInfoFromApiStubsProviders(provider ApiStubsSrcProvider, stubsType StubsType) error { stubsSrcJar, err := provider.StubsSrcJar(stubsType) if err == nil { |