Remove unnecessary snake case variables.
Test: m nothing + TreeHugger Change-Id: I99f7162944daa6c57c6ae4763261e108bb5cb6b1
This commit is contained in:
@@ -627,7 +627,7 @@ func translateAndroidMk(ctx SingletonContext, mkFile string, mods []blueprint.Mo
|
||||
|
||||
fmt.Fprintln(buf, "LOCAL_MODULE_MAKEFILE := $(lastword $(MAKEFILE_LIST))")
|
||||
|
||||
type_stats := make(map[string]int)
|
||||
typeStats := make(map[string]int)
|
||||
for _, mod := range mods {
|
||||
err := translateAndroidMkModule(ctx, buf, mod)
|
||||
if err != nil {
|
||||
@@ -636,19 +636,19 @@ func translateAndroidMk(ctx SingletonContext, mkFile string, mods []blueprint.Mo
|
||||
}
|
||||
|
||||
if amod, ok := mod.(Module); ok && ctx.PrimaryModule(amod) == amod {
|
||||
type_stats[ctx.ModuleType(amod)] += 1
|
||||
typeStats[ctx.ModuleType(amod)] += 1
|
||||
}
|
||||
}
|
||||
|
||||
keys := []string{}
|
||||
fmt.Fprintln(buf, "\nSTATS.SOONG_MODULE_TYPE :=")
|
||||
for k := range type_stats {
|
||||
for k := range typeStats {
|
||||
keys = append(keys, k)
|
||||
}
|
||||
sort.Strings(keys)
|
||||
for _, mod_type := range keys {
|
||||
fmt.Fprintln(buf, "STATS.SOONG_MODULE_TYPE +=", mod_type)
|
||||
fmt.Fprintf(buf, "STATS.SOONG_MODULE_TYPE.%s := %d\n", mod_type, type_stats[mod_type])
|
||||
fmt.Fprintf(buf, "STATS.SOONG_MODULE_TYPE.%s := %d\n", mod_type, typeStats[mod_type])
|
||||
}
|
||||
|
||||
// Don't write to the file if it hasn't changed
|
||||
|
Reference in New Issue
Block a user