Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
2894e78e
Unverified
Commit
2894e78e
authored
Mar 24, 2021
by
Cristian Maglie
Committed by
GitHub
Mar 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip-changelog] Remove unused code (#1232)
parent
8726c3a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
cli/burnbootloader/burnbootloader.go
cli/burnbootloader/burnbootloader.go
+0
-18
cli/upload/upload.go
cli/upload/upload.go
+0
-18
No files found.
cli/burnbootloader/burnbootloader.go
View file @
2894e78e
...
@@ -24,7 +24,6 @@ import (
...
@@ -24,7 +24,6 @@ import (
"github.com/arduino/arduino-cli/cli/instance"
"github.com/arduino/arduino-cli/cli/instance"
"github.com/arduino/arduino-cli/commands/upload"
"github.com/arduino/arduino-cli/commands/upload"
rpc
"github.com/arduino/arduino-cli/rpc/commands"
rpc
"github.com/arduino/arduino-cli/rpc/commands"
"github.com/arduino/arduino-cli/table"
"github.com/arduino/go-paths-helper"
"github.com/arduino/go-paths-helper"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
...
@@ -95,20 +94,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
...
@@ -95,20 +94,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
logrus
.
Infof
(
"Reading sketch from dir: %s"
,
wd
)
logrus
.
Infof
(
"Reading sketch from dir: %s"
,
wd
)
return
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
()
}
cli/upload/upload.go
View file @
2894e78e
...
@@ -25,7 +25,6 @@ import (
...
@@ -25,7 +25,6 @@ import (
"github.com/arduino/arduino-cli/cli/instance"
"github.com/arduino/arduino-cli/cli/instance"
"github.com/arduino/arduino-cli/commands/upload"
"github.com/arduino/arduino-cli/commands/upload"
rpc
"github.com/arduino/arduino-cli/rpc/commands"
rpc
"github.com/arduino/arduino-cli/rpc/commands"
"github.com/arduino/arduino-cli/table"
"github.com/arduino/go-paths-helper"
"github.com/arduino/go-paths-helper"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
...
@@ -122,20 +121,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
...
@@ -122,20 +121,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
logrus
.
Infof
(
"Reading sketch from dir: %s"
,
wd
)
logrus
.
Infof
(
"Reading sketch from dir: %s"
,
wd
)
return
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
()
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment