From 8f4b7a33617534dea29c0b61ee93225b9c998a7c Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 25 Mar 2016 17:41:19 +0100 Subject: [PATCH] Removing DockerCli.pullImage as it's never used This function is never used nor exported. It has been superseeded by pullImageCustomOut. Signed-off-by: Vincent Demeester --- api/client/create.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/client/create.go b/api/client/create.go index cca677f0e9..7c386bcd3c 100644 --- a/api/client/create.go +++ b/api/client/create.go @@ -18,11 +18,7 @@ import ( networktypes "github.com/docker/engine-api/types/network" ) -func (cli *DockerCli) pullImage(image string) error { - return cli.pullImageCustomOut(image, cli.out) -} - -func (cli *DockerCli) pullImageCustomOut(image string, out io.Writer) error { +func (cli *DockerCli) pullImage(image string, out io.Writer) error { ref, err := reference.ParseNamed(image) if err != nil { return err @@ -119,7 +115,7 @@ func (cli *DockerCli) createContainer(config *container.Config, hostConfig *cont fmt.Fprintf(cli.err, "Unable to find image '%s' locally\n", ref.String()) // we don't want to write to stdout anything apart from container.ID - if err = cli.pullImageCustomOut(config.Image, cli.err); err != nil { + if err = cli.pullImage(config.Image, cli.err); err != nil { return nil, err } if ref, ok := ref.(reference.NamedTagged); ok && trustedRef != nil {