Use android.InList for inList

Remove duplicate implementations of inList.

Test: m checkbuild
Change-Id: I6943b95f6d47e6722b9ff1ab61ab14c429fe33a0
This commit is contained in:
Colin Cross
2018-02-20 13:33:42 -08:00
parent 52226ad920
commit 0d0ba59ec3
2 changed files with 3 additions and 23 deletions

View File

@@ -1252,15 +1252,6 @@ func ImportFactoryHost() android.Module {
return module
}
func inList(s string, l []string) bool {
for _, e := range l {
if e == s {
return true
}
}
return false
}
//
// Defaults
//
@@ -1295,3 +1286,4 @@ func DefaultsFactory(props ...interface{}) android.Module {
var Bool = proptools.Bool
var String = proptools.String
var inList = android.InList