@@ -20,7 +20,6 @@ import (
20
20
21
21
"github.com/arduino/arduino-cli/commands/board"
22
22
"github.com/arduino/arduino-cli/commands/core"
23
- "github.com/arduino/arduino-cli/commands/internal/instances"
24
23
"github.com/arduino/arduino-cli/commands/lib"
25
24
"github.com/arduino/arduino-cli/commands/upload"
26
25
"github.com/arduino/arduino-cli/internal/cli/instance"
@@ -51,13 +50,6 @@ func GetInstalledBoards() []string {
51
50
func GetInstalledProtocols () []string {
52
51
inst := instance .CreateAndInit ()
53
52
54
- // FIXME: We must not access PackageManager directly here but use one of the commands.* functions
55
- pme , release := instances .GetPackageManagerExplorer (inst )
56
- if pme == nil {
57
- return nil // should never happen...
58
- }
59
- defer release ()
60
-
61
53
boards := pme .InstalledBoards ()
62
54
63
55
installedProtocols := make (map [string ]struct {})
@@ -94,13 +86,6 @@ func GetInstalledProgrammers() []string {
94
86
}
95
87
list , _ := board .ListAll (context .Background (), listAllReq )
96
88
97
- // FIXME: We must not access PackageManager directly here but use one of the commands.* functions
98
- pme , release := instances .GetPackageManagerExplorer (inst )
99
- if pme == nil {
100
- return nil // should never happen...
101
- }
102
- defer release ()
103
-
104
89
installedProgrammers := make (map [string ]string )
105
90
for _ , board := range list .Boards {
106
91
programmers , _ := upload .ListProgrammersAvailableForUpload (context .Background (), & rpc.ListProgrammersAvailableForUploadRequest {
0 commit comments