File tree Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 3030package builder
3131
3232import (
33- "github.com/arduino/arduino-builder/types"
34- "github.com/arduino/arduino-builder/utils"
3533 "fmt"
3634 "sort"
35+
36+ "github.com/arduino/arduino-builder/types"
3737)
3838
3939type DumpBuildProperties struct {}
4040
4141func (s * DumpBuildProperties ) Run (ctx * types.Context ) error {
4242 buildProperties := ctx .BuildProperties
4343
44- keys := utils . KeysOfMapOfString ( buildProperties )
44+ keys := buildProperties . Keys ( )
4545 sort .Strings (keys )
4646
4747 for _ , key := range keys {
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import (
3939 "github.com/arduino/arduino-builder/constants"
4040 "github.com/arduino/arduino-builder/i18n"
4141 "github.com/arduino/arduino-builder/types"
42- "github.com/arduino/arduino-builder/utils"
4342 "github.com/arduino/go-properties-map"
4443)
4544
@@ -63,7 +62,7 @@ func (s *PlatformKeysRewriteLoader) Run(ctx *types.Context) error {
6362 if err != nil {
6463 return i18n .WrapError (err )
6564 }
66- keys := utils . KeysOfMapOfString ( txt )
65+ keys := txt . Keys ( )
6766 sort .Strings (keys )
6867
6968 for _ , key := range keys {
Original file line number Diff line number Diff line change @@ -52,22 +52,6 @@ import (
5252 "golang.org/x/text/unicode/norm"
5353)
5454
55- func KeysOfMapOfStringInterface (input map [string ]interface {}) []string {
56- var keys []string
57- for key , _ := range input {
58- keys = append (keys , key )
59- }
60- return keys
61- }
62-
63- func KeysOfMapOfString (input map [string ]string ) []string {
64- var keys []string
65- for key , _ := range input {
66- keys = append (keys , key )
67- }
68- return keys
69- }
70-
7155func PrettyOSName () string {
7256 switch osName := runtime .GOOS ; osName {
7357 case "darwin" :
You can’t perform that action at this time.
0 commit comments