@@ -145,11 +145,6 @@ func main() {
145
145
log .Println ("calling PlatformInstall(arduino:samd@1.6.19)" )
146
146
callPlatformInstall (client , instance )
147
147
148
- // Now list the installed platforms to double check previous installation
149
- // went right.
150
- log .Println ("calling PlatformList()" )
151
- callPlatformList (client , instance )
152
-
153
148
// Upgrade the installed platform to the latest version.
154
149
log .Println ("calling PlatformUpgrade(arduino:samd)" )
155
150
callPlatformUpgrade (client , instance )
@@ -464,21 +459,6 @@ func callPlatformInstall(client rpc.ArduinoCoreServiceClient, instance *rpc.Inst
464
459
}
465
460
}
466
461
467
- func callPlatformList (client rpc.ArduinoCoreServiceClient , instance * rpc.Instance ) {
468
- listResp , err := client .PlatformList (context .Background (),
469
- & rpc.PlatformListRequest {Instance : instance })
470
-
471
- if err != nil {
472
- log .Fatalf ("List error: %s" , err )
473
- }
474
-
475
- for _ , plat := range listResp .GetInstalledPlatforms () {
476
- // We only print ID and version of the installed platforms but you can look
477
- // at the definition for the rpc.Platform struct for more fields.
478
- log .Printf ("Installed platform: %s - %s" , plat .GetId (), plat .GetInstalled ())
479
- }
480
- }
481
-
482
462
func callPlatformUpgrade (client rpc.ArduinoCoreServiceClient , instance * rpc.Instance ) {
483
463
upgradeRespStream , err := client .PlatformUpgrade (context .Background (),
484
464
& rpc.PlatformUpgradeRequest {
0 commit comments