Skip to content

Commit 1f3ddc6

Browse files
author
Massimiliano Pippi
committed
remove debug fmt.Println
1 parent f11f161 commit 1f3ddc6

File tree

10 files changed

+0
-16
lines changed

10 files changed

+0
-16
lines changed

arduino/cores/packageindex/index.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ func LoadIndex(jsonIndexFile *paths.Path) (*Index, error) {
206206
if err != nil {
207207
return nil, err
208208
}
209-
//fmt.Println(string(buff))
210209
var index Index
211210
err = json.Unmarshal(buff, &index)
212211
if err != nil {

arduino/cores/packageindex/index_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package packageindex
1919

2020
import (
21-
"fmt"
2221
"testing"
2322

2423
"github.com/arduino/go-paths-helper"
@@ -35,7 +34,6 @@ func TestIndexParsing(t *testing.T) {
3534
if indexFile.Ext() != ".json" {
3635
continue
3736
}
38-
fmt.Println("Loading:", indexFile)
3937
_, err := LoadIndex(indexFile)
4038
require.NoError(t, err)
4139
}

arduino/cores/packagemanager/package_manager_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ func TestBoardOptionsFunctions(t *testing.T) {
216216
func TestFindToolsRequiredForBoard(t *testing.T) {
217217
os.Setenv("ARDUINO_DATA_DIR", dataDir1.String())
218218
configuration.Init("")
219-
fmt.Println(viper.AllSettings())
220219
pm := packagemanager.NewPackageManager(
221220
dataDir1,
222221
configuration.PackagesDir(),

cli/cli_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ func detectLatestAVRCore(t *testing.T) string {
206206
}
207207
}
208208
require.NotEmpty(t, latest, "latest avr core version")
209-
fmt.Println("Latest AVR core version:", latest)
210209
return latest.String()
211210
}
212211

commands/daemon/daemon.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ package daemon
2121

2222
import (
2323
"context"
24-
"fmt"
2524
"io"
2625
"net/http"
2726

@@ -116,7 +115,6 @@ func (s *ArduinoCoreServerImpl) Init(req *rpc.InitReq, stream rpc.ArduinoCore_In
116115
if err != nil {
117116
return err
118117
}
119-
fmt.Println(resp)
120118
return stream.Send(resp)
121119
}
122120

commands/daemon/settings.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"context"
2020
"encoding/json"
2121
"errors"
22-
"fmt"
2322

2423
rpc "github.com/arduino/arduino-cli/rpc/settings"
2524
"github.com/spf13/viper"
@@ -62,8 +61,6 @@ func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest
6261
key := req.GetKey()
6362
value := &rpc.Value{}
6463

65-
fmt.Println(viper.AllKeys())
66-
6764
if !viper.InConfig(key) {
6865
return nil, errors.New("key not found in settings")
6966
}

commands/daemon/settings_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package daemon
1818
import (
1919
"context"
2020
"encoding/json"
21-
"fmt"
2221
"testing"
2322

2423
"github.com/spf13/viper"
@@ -54,7 +53,6 @@ func TestMerge(t *testing.T) {
5453
_, err := svc.Merge(context.Background(), &rpc.RawData{JsonData: bulkSettings})
5554
require.Nil(t, err)
5655

57-
fmt.Println(viper.AllSettings())
5856
require.Equal(t, "420", viper.GetString("daemon.port"))
5957
require.Equal(t, "bar", viper.GetString("foo"))
6058

commands/instances.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ func Init(ctx context.Context, req *rpc.InitReq, downloadCB DownloadProgressCB,
144144
instances[handle] = instance
145145

146146
if err := instance.checkForBuiltinTools(downloadCB, taskCB, downloaderHeaders); err != nil {
147-
fmt.Println(err)
148147
return nil, err
149148
}
150149

legacy/builder/test/includes_to_include_folders_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
package test
3131

3232
import (
33-
"fmt"
3433
"path/filepath"
3534
"sort"
3635
"testing"
@@ -331,7 +330,6 @@ func TestIncludesToIncludeFoldersSubfolders(t *testing.T) {
331330

332331
importedLibraries := ctx.ImportedLibraries
333332
sort.Sort(ByLibraryName(importedLibraries))
334-
fmt.Println(importedLibraries)
335333
require.Equal(t, 3, len(importedLibraries))
336334
require.Equal(t, "testlib1", importedLibraries[0].Name)
337335
require.Equal(t, "testlib2", importedLibraries[1].Name)

legacy/builder/tools_loader.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ type ToolsLoader struct{}
3838

3939
func (s *ToolsLoader) Run(ctx *types.Context) error {
4040
if ctx.CanUseCachedTools {
41-
//fmt.Println("no fs modification, can use cached ctx")
4241
return nil
4342
}
4443

0 commit comments

Comments
 (0)