From f13e07eee2b8ae5851823cfa87989483fadcced2 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Sun, 25 Apr 2021 21:38:14 +0100 Subject: [PATCH] Remove unused setting of BootImageInfo for platform_bootclasspath The BootImageInfo is used to populate an apex. A platform_bootclasspath module cannot be part of an apex so does not need to provide one. Bug: 177892522 Test: m nothing Change-Id: I1e1c4962d9d8106a12af80107c4c35828f54ff81 --- java/platform_bootclasspath.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/java/platform_bootclasspath.go b/java/platform_bootclasspath.go index b1a0ac43f..05b8e2fa2 100644 --- a/java/platform_bootclasspath.go +++ b/java/platform_bootclasspath.go @@ -171,17 +171,6 @@ func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.Mo // Force the GlobalSoongConfig to be created and cached for use by the dex_bootjars // GenerateSingletonBuildActions method as it cannot create it for itself. dexpreopt.GetGlobalSoongConfig(ctx) - - imageConfig := b.getImageConfig(ctx) - if imageConfig == nil { - return - } - - // Construct the boot image info from the config. - info := BootImageInfo{imageConfig: imageConfig} - - // Make it available for other modules. - ctx.SetProvider(BootImageInfoProvider, info) } func (b *platformBootclasspathModule) getImageConfig(ctx android.EarlyModuleContext) *bootImageConfig {