From b682d7cde619c61eace60811296c26f70e94c6b4 Mon Sep 17 00:00:00 2001 From: Ian Babrou Date: Mon, 19 Jan 2015 23:00:57 +0300 Subject: [PATCH] removed unused compression arg in Graph.TempLayerArchive() Signed-off-by: Ian Babrou --- graph/graph.go | 2 +- graph/push.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/graph/graph.go b/graph/graph.go index b6ea22bdc8..30bea0470f 100644 --- a/graph/graph.go +++ b/graph/graph.go @@ -196,7 +196,7 @@ func (graph *Graph) Register(img *image.Image, layerData archive.ArchiveReader) // The archive is stored on disk and will be automatically deleted as soon as has been read. // If output is not nil, a human-readable progress bar will be written to it. // FIXME: does this belong in Graph? How about MktempFile, let the caller use it for archives? -func (graph *Graph) TempLayerArchive(id string, compression archive.Compression, sf *utils.StreamFormatter, output io.Writer) (*archive.TempArchive, error) { +func (graph *Graph) TempLayerArchive(id string, sf *utils.StreamFormatter, output io.Writer) (*archive.TempArchive, error) { image, err := graph.Get(id) if err != nil { return nil, err diff --git a/graph/push.go b/graph/push.go index 46469daead..316eed91be 100644 --- a/graph/push.go +++ b/graph/push.go @@ -13,7 +13,6 @@ import ( log "github.com/Sirupsen/logrus" "github.com/docker/docker/engine" "github.com/docker/docker/image" - "github.com/docker/docker/pkg/archive" "github.com/docker/docker/registry" "github.com/docker/docker/utils" "github.com/docker/libtrust" @@ -228,7 +227,7 @@ func (s *TagStore) pushImage(r *registry.Session, out io.Writer, imgID, ep strin return "", err } - layerData, err := s.graph.TempLayerArchive(imgID, archive.Uncompressed, sf, out) + layerData, err := s.graph.TempLayerArchive(imgID, sf, out) if err != nil { return "", fmt.Errorf("Failed to generate layer archive: %s", err) }