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 {