Skip to content

Commit 5f4a92e

Browse files
author
Massimiliano Pippi
authored
Remove debug prints (#526)
1 parent d83170e commit 5f4a92e

File tree

10 files changed

+0
-16
lines changed

10 files changed

+0
-16
lines changed

arduino/cores/packageindex/index.go

-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ func LoadIndex(jsonIndexFile *paths.Path) (*Index, error) {
204204
if err != nil {
205205
return nil, err
206206
}
207-
//fmt.Println(string(buff))
208207
var index Index
209208
err = json.Unmarshal(buff, &index)
210209
if err != nil {

arduino/cores/packageindex/index_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package packageindex
1717

1818
import (
19-
"fmt"
2019
"testing"
2120

2221
"github.com/arduino/go-paths-helper"
@@ -33,7 +32,6 @@ func TestIndexParsing(t *testing.T) {
3332
if indexFile.Ext() != ".json" {
3433
continue
3534
}
36-
fmt.Println("Loading:", indexFile)
3735
_, err := LoadIndex(indexFile)
3836
require.NoError(t, err)
3937
}

arduino/cores/packagemanager/package_manager_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ func TestBoardOptionsFunctions(t *testing.T) {
214214
func TestFindToolsRequiredForBoard(t *testing.T) {
215215
os.Setenv("ARDUINO_DATA_DIR", dataDir1.String())
216216
configuration.Init("")
217-
fmt.Println(viper.AllSettings())
218217
pm := packagemanager.NewPackageManager(
219218
dataDir1,
220219
configuration.PackagesDir(),

cli/cli_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ func detectLatestAVRCore(t *testing.T) string {
212212
}
213213
}
214214
require.NotEmpty(t, latest, "latest avr core version")
215-
fmt.Println("Latest AVR core version:", latest)
216215
return latest.String()
217216
}
218217

commands/daemon/daemon.go

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package daemon
1919

2020
import (
2121
"context"
22-
"fmt"
2322
"io"
2423
"net/http"
2524

@@ -114,7 +113,6 @@ func (s *ArduinoCoreServerImpl) Init(req *rpc.InitReq, stream rpc.ArduinoCore_In
114113
if err != nil {
115114
return err
116115
}
117-
fmt.Println(resp)
118116
return stream.Send(resp)
119117
}
120118

commands/daemon/settings.go

-3
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

-2
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

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ func Init(ctx context.Context, req *rpc.InitReq, downloadCB DownloadProgressCB,
148148
instances[handle] = instance
149149

150150
if err := instance.checkForBuiltinTools(downloadCB, taskCB, downloaderHeaders); err != nil {
151-
fmt.Println(err)
152151
return nil, err
153152
}
154153

legacy/builder/test/includes_to_include_folders_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package test
1717

1818
import (
19-
"fmt"
2019
"path/filepath"
2120
"sort"
2221
"testing"
@@ -317,7 +316,6 @@ func TestIncludesToIncludeFoldersSubfolders(t *testing.T) {
317316

318317
importedLibraries := ctx.ImportedLibraries
319318
sort.Sort(ByLibraryName(importedLibraries))
320-
fmt.Println(importedLibraries)
321319
require.Equal(t, 3, len(importedLibraries))
322320
require.Equal(t, "testlib1", importedLibraries[0].Name)
323321
require.Equal(t, "testlib2", importedLibraries[1].Name)

legacy/builder/tools_loader.go

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type ToolsLoader struct{}
2424

2525
func (s *ToolsLoader) Run(ctx *types.Context) error {
2626
if ctx.CanUseCachedTools {
27-
//fmt.Println("no fs modification, can use cached ctx")
2827
return nil
2928
}
3029

0 commit comments

Comments
 (0)