Use android.InList for inList
Remove duplicate implementations of inList. Test: m checkbuild Change-Id: I6943b95f6d47e6722b9ff1ab61ab14c429fe33a0
This commit is contained in:
10
java/java.go
10
java/java.go
@@ -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
|
||||
|
Reference in New Issue
Block a user