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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user