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
a1696e01
Commit
a1696e01
authored
Jul 20, 2018
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused function
parent
9e1b6cbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
commands/lib/lib.go
commands/lib/lib.go
+0
-17
No files found.
commands/lib/lib.go
View file @
a1696e01
...
...
@@ -31,7 +31,6 @@ package lib
import
(
"os"
"strings"
paths
"github.com/arduino/go-paths-helper"
"github.com/bcmi-labs/arduino-cli/commands"
...
...
@@ -40,7 +39,6 @@ import (
"github.com/bcmi-labs/arduino-cli/arduino/libraries"
"github.com/bcmi-labs/arduino-cli/arduino/libraries/librariesmanager"
"github.com/bcmi-labs/arduino-cli/common/formatter/output"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
...
...
@@ -64,21 +62,6 @@ func InitCommand() *cobra.Command {
return
libCommand
}
func
resultFromFileName
(
file
os
.
FileInfo
,
libs
*
output
.
LibProcessResults
)
{
fileName
:=
file
.
Name
()
//replacing underscore in foldernames with spaces.
fileName
=
strings
.
Replace
(
fileName
,
"_"
,
" "
,
-
1
)
fileName
=
strings
.
Replace
(
fileName
,
"-"
,
" v. "
,
-
1
)
//I use folder name
logrus
.
WithField
(
"Name"
,
fileName
)
.
Warn
(
"Using filename to get result"
)
// FIXME: Should use GetLibraryCode but we don't have a damn library here -.-'
libs
.
Libraries
[
fileName
]
=
output
.
ProcessResult
{
ItemName
:
fileName
,
Status
:
""
,
Error
:
"Unknown Version"
,
}
}
func
getLibraryManager
()
*
librariesmanager
.
LibrariesManager
{
logrus
.
Info
(
"Starting libraries manager"
)
pm
:=
commands
.
InitPackageManager
()
...
...
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