diff options
| author | 2024-10-07 20:28:37 +0000 | |
|---|---|---|
| committer | 2024-10-07 20:28:37 +0000 | |
| commit | 6a1d02919a5902abc50a148cd2eaf3cad092bcc8 (patch) | |
| tree | b7d14b6cfcbb978e8bddd1261273191aa40dc822 /java | |
| parent | 0fdc7558f78f57ad4d1d4d9544b204d008a874f1 (diff) | |
Remove IDEInfo method from java_sdk_library
This is no longer needed given that the modules no longer depend on the
top level java_sdk_library.
Test: diff out/soong/module_bp_java_deps.json
Change-Id: I035844b638e2c6b305257755a75e9af47c5aec61
Diffstat (limited to 'java')
| -rw-r--r-- | java/sdk_library.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index f30877258..dfbde0e54 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -2481,19 +2481,3 @@ func (s *sdkLibrarySdkMemberProperties) AddToPropertySet(ctx android.SdkMemberCo propertySet.AddProperty("doctag_files", dests) } } - -// TODO(b/358613520): This can be removed when modules are no longer allowed to depend on the top-level library. -func (s *SdkLibrary) IDEInfo(ctx android.BaseModuleContext, dpInfo *android.IdeInfo) { - s.Library.IDEInfo(ctx, dpInfo) - if s.implLibraryModule != nil { - dpInfo.Deps = append(dpInfo.Deps, s.implLibraryModule.Name()) - } else { - // This java_sdk_library does not have an implementation (it sets `api_only` to true). - // Examples of this are `art.module.intra.core.api` (IntraCore api surface). - // Return the "public" stubs for these. - stubPaths := s.findClosestScopePath(apiScopePublic) - if len(stubPaths.stubsHeaderPath) > 0 { - dpInfo.Jars = append(dpInfo.Jars, stubPaths.stubsHeaderPath[0].String()) - } - } -} |