Revert "refactor of api_levels map for soong injection"
Revert submission 2441746-api_levels_refactor Reason for revert: broke Android kernel build tools build: https://ci.android.com/builds/branches/aosp_kernel-build-tools/grid? Reverted changes: /q/submissionid:2441746-api_levels_refactor Change-Id: I35206879b93ec95ae325025cb764c6c34880dccf
This commit is contained in:
committed by
Gerrit Code Review
parent
c566ad8a4f
commit
a865f4e905
@@ -17,7 +17,6 @@ package starlark_fmt
|
||||
import (
|
||||
"fmt"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -85,16 +84,6 @@ func PrintBoolDict(dict map[string]bool, indentLevel int) string {
|
||||
return PrintDict(formattedValueDict, indentLevel)
|
||||
}
|
||||
|
||||
// PrintStringIntDict returns a Starlark-compatible string formatted as dictionary with
|
||||
// string keys and int values.
|
||||
func PrintStringIntDict(dict map[string]int, indentLevel int) string {
|
||||
valDict := make(map[string]string, len(dict))
|
||||
for k, v := range dict {
|
||||
valDict[k] = strconv.Itoa(v)
|
||||
}
|
||||
return PrintDict(valDict, indentLevel)
|
||||
}
|
||||
|
||||
// PrintDict returns a starlark-compatible string containing a dictionary with string keys and
|
||||
// values printed with no additional formatting.
|
||||
func PrintDict(dict map[string]string, indentLevel int) string {
|
||||
|
Reference in New Issue
Block a user