lint: Fix virtcontainers unused errors

Remove unused variables and functions identified by the `varcheck` and
`unused` linters.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt
2018-03-19 19:20:50 +00:00
parent 97d2ef2712
commit d51a5e303d
16 changed files with 1 additions and 147 deletions

View File

@@ -20,7 +20,6 @@ import (
"errors"
"fmt"
"os"
"os/exec"
"strings"
"text/tabwriter"
@@ -860,28 +859,6 @@ var statusContainerCommand = cli.Command{
},
}
func startCCShim(process *vc.Process, shimPath, url string) error {
if process.Token == "" {
return fmt.Errorf("Token cannot be empty")
}
if url == "" {
return fmt.Errorf("URL cannot be empty")
}
if shimPath == "" {
return fmt.Errorf("Shim path cannot be empty")
}
cmd := exec.Command(shimPath, "-t", process.Token, "-u", url)
cmd.Env = os.Environ()
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run()
}
func main() {
cli.VersionFlag = cli.BoolFlag{
Name: "version",