File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 30
30
package builder
31
31
32
32
import (
33
- "github.com/arduino/arduino-builder/types"
34
- "github.com/arduino/arduino-builder/utils"
35
33
"fmt"
36
34
"sort"
35
+
36
+ "github.com/arduino/arduino-builder/types"
37
37
)
38
38
39
39
type DumpBuildProperties struct {}
40
40
41
41
func (s * DumpBuildProperties ) Run (ctx * types.Context ) error {
42
42
buildProperties := ctx .BuildProperties
43
43
44
- keys := utils . KeysOfMapOfString ( buildProperties )
44
+ keys := buildProperties . Keys ( )
45
45
sort .Strings (keys )
46
46
47
47
for _ , key := range keys {
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import (
39
39
"github.com/arduino/arduino-builder/constants"
40
40
"github.com/arduino/arduino-builder/i18n"
41
41
"github.com/arduino/arduino-builder/types"
42
- "github.com/arduino/arduino-builder/utils"
43
42
"github.com/arduino/go-properties-map"
44
43
)
45
44
@@ -63,7 +62,7 @@ func (s *PlatformKeysRewriteLoader) Run(ctx *types.Context) error {
63
62
if err != nil {
64
63
return i18n .WrapError (err )
65
64
}
66
- keys := utils . KeysOfMapOfString ( txt )
65
+ keys := txt . Keys ( )
67
66
sort .Strings (keys )
68
67
69
68
for _ , key := range keys {
Original file line number Diff line number Diff line change @@ -53,14 +53,6 @@ import (
53
53
"golang.org/x/text/unicode/norm"
54
54
)
55
55
56
- func KeysOfMapOfString (input map [string ]string ) []string {
57
- var keys []string
58
- for key , _ := range input {
59
- keys = append (keys , key )
60
- }
61
- return keys
62
- }
63
-
64
56
func PrettyOSName () string {
65
57
switch osName := runtime .GOOS ; osName {
66
58
case "darwin" :
You can’t perform that action at this time.
0 commit comments