Commit a1696e01 authored by Cristian Maglie's avatar Cristian Maglie

removed unused function

parent 9e1b6cbd
......@@ -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()
......
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