remove dead code

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-01-21 11:09:36 +01:00
parent be0a455d5b
commit bc6779a189

View File

@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"os"
"os/exec"
"time"
"github.com/Sirupsen/logrus"
@ -211,11 +210,6 @@ func newManifestFetcher(endpoint registry.APIEndpoint, repoInfo *registry.Reposi
return nil, fmt.Errorf("unknown version %d for registry %s", endpoint.Version, endpoint.URL)
}
func isDockerAvailable() bool {
_, err := exec.LookPath("docker")
return err == nil
}
func getAuthConfig(c *cli.Context, index *registryTypes.IndexInfo) (types.AuthConfig, error) {
var (
username = c.GlobalString("username")