Remove unused Context.ModulePath
Context.ModulePath is a duplicate of Context.BlueprintFile, and is misleading because it returns the path to the Android.bp, and not the path to the directory that contains the Android.bp file like ModuleContext.ModuleDir. Change-Id: I505136fce3c3d37595cd4b4e08de5e2691a2a0f6
This commit is contained in:
parent
e635dc0568
commit
8e454c5575
1 changed files with 1 additions and 6 deletions
|
@ -3047,13 +3047,8 @@ func (c *Context) ModuleName(logicModule Module) string {
|
|||
return module.Name()
|
||||
}
|
||||
|
||||
func (c *Context) ModulePath(logicModule Module) string {
|
||||
module := c.moduleInfo[logicModule]
|
||||
return module.relBlueprintsFile
|
||||
}
|
||||
|
||||
func (c *Context) ModuleDir(logicModule Module) string {
|
||||
return filepath.Dir(c.ModulePath(logicModule))
|
||||
return filepath.Dir(c.BlueprintFile(logicModule))
|
||||
}
|
||||
|
||||
func (c *Context) ModuleSubDir(logicModule Module) string {
|
||||
|
|
Loading…
Reference in a new issue