@@ -20,7 +20,6 @@ import (
2020
2121 "github.com/arduino/arduino-cli/commands/board"
2222 "github.com/arduino/arduino-cli/commands/core"
23- "github.com/arduino/arduino-cli/commands/internal/instances"
2423 "github.com/arduino/arduino-cli/commands/lib"
2524 "github.com/arduino/arduino-cli/commands/upload"
2625 "github.com/arduino/arduino-cli/internal/cli/instance"
@@ -51,13 +50,6 @@ func GetInstalledBoards() []string {
5150func GetInstalledProtocols () []string {
5251 inst := instance .CreateAndInit ()
5352
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-
6153 boards := pme .InstalledBoards ()
6254
6355 installedProtocols := make (map [string ]struct {})
@@ -94,13 +86,6 @@ func GetInstalledProgrammers() []string {
9486 }
9587 list , _ := board .ListAll (context .Background (), listAllReq )
9688
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-
10489 installedProgrammers := make (map [string ]string )
10590 for _ , board := range list .Boards {
10691 programmers , _ := upload .ListProgrammersAvailableForUpload (context .Background (), & rpc.ListProgrammersAvailableForUploadRequest {
0 commit comments