Unverified Commit 2894e78e authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

[skip-changelog] Remove unused code (#1232)

parent 8726c3a0
......@@ -24,7 +24,6 @@ import (
"github.com/arduino/arduino-cli/cli/instance"
"github.com/arduino/arduino-cli/commands/upload"
rpc "github.com/arduino/arduino-cli/rpc/commands"
"github.com/arduino/arduino-cli/table"
"github.com/arduino/go-paths-helper"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
......@@ -95,20 +94,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
logrus.Infof("Reading sketch from dir: %s", wd)
return wd
}
type programmersList struct {
Programmers []*rpc.Programmer
}
func (p *programmersList) Data() interface{} {
return p.Programmers
}
func (p *programmersList) String() string {
t := table.New()
t.SetHeader("ID", "Programmer Name", "Platform")
for _, prog := range p.Programmers {
t.AddRow(prog.GetId(), prog.GetName(), prog.GetPlatform())
}
return t.Render()
}
......@@ -25,7 +25,6 @@ import (
"github.com/arduino/arduino-cli/cli/instance"
"github.com/arduino/arduino-cli/commands/upload"
rpc "github.com/arduino/arduino-cli/rpc/commands"
"github.com/arduino/arduino-cli/table"
"github.com/arduino/go-paths-helper"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
......@@ -122,20 +121,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
logrus.Infof("Reading sketch from dir: %s", wd)
return wd
}
type programmersList struct {
Programmers []*rpc.Programmer
}
func (p *programmersList) Data() interface{} {
return p.Programmers
}
func (p *programmersList) String() string {
t := table.New()
t.SetHeader("ID", "Programmer Name", "Platform")
for _, prog := range p.Programmers {
t.AddRow(prog.GetId(), prog.GetName(), prog.GetPlatform())
}
return t.Render()
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment