From 8ff105860d20f2ccbb8d8044bf562f94100b7f6a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 7 Dec 2023 13:10:56 -0800 Subject: Remove ConvertWithBp2build implementations Remove the ConvertWithBp2build implementations from all the module types, along with the related code. Bug: 315353489 Test: m blueprint_tests Change-Id: I212672286686a318893bc7348ddd5a5ec51e77a7 --- python/python.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'python/python.go') diff --git a/python/python.go b/python/python.go index b4617c831..79b151567 100644 --- a/python/python.go +++ b/python/python.go @@ -129,7 +129,6 @@ type pathMapping struct { type PythonLibraryModule struct { android.ModuleBase android.DefaultableModuleBase - android.BazelModuleBase properties BaseProperties protoProperties android.ProtoProperties @@ -197,14 +196,6 @@ func (p *PythonLibraryModule) getPkgPath() string { return String(p.properties.Pkg_path) } -// PkgPath is the "public" version of `getPkgPath` that is only available during bp2build -func (p *PythonLibraryModule) PkgPath(ctx android.BazelConversionContext) *string { - if ctx.Config().BuildMode != android.Bp2build { - ctx.ModuleErrorf("PkgPath is only supported in bp2build mode") - } - return p.properties.Pkg_path -} - func (p *PythonLibraryModule) getBaseProperties() *BaseProperties { return &p.properties } @@ -215,7 +206,6 @@ func (p *PythonLibraryModule) init() android.Module { p.AddProperties(&p.properties, &p.protoProperties) android.InitAndroidArchModule(p, p.hod, p.multilib) android.InitDefaultableModule(p) - android.InitBazelModule(p) return p } -- cgit v1.2.3-59-g8ed1b