diff options
author | Miloslav Trmač <mitr@redhat.com> | 2019-01-09 21:11:32 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2019-01-14 04:07:23 +0100 |
commit | e5c764ec3cc11982cdb8e127554e4ac61ce9a854 (patch) | |
tree | 76750cadc3cd037f81372d00043ce0f7085f1cd3 /libpod/image/parts.go | |
parent | 633501b1b7450676c47d891092b53680206b8398 (diff) | |
download | podman-e5c764ec3cc11982cdb8e127554e4ac61ce9a854.tar.gz podman-e5c764ec3cc11982cdb8e127554e4ac61ce9a854.tar.bz2 podman-e5c764ec3cc11982cdb8e127554e4ac61ce9a854.zip |
Remove no longer used imageParts.assemble()
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image/parts.go')
-rw-r--r-- | libpod/image/parts.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libpod/image/parts.go b/libpod/image/parts.go index 8d059e35b..566a3842c 100644 --- a/libpod/image/parts.go +++ b/libpod/image/parts.go @@ -1,7 +1,6 @@ package image import ( - "fmt" "strings" "github.com/containers/image/docker/reference" @@ -93,13 +92,3 @@ func (ip *imageParts) referenceWithRegistry(registry string) (reference.Named, e } return ref, nil } - -// assemble concatenates an image's parts into a string -func (ip *imageParts) assemble() string { - spec := fmt.Sprintf("%s:%s", ip.name, ip.tag) - - if ip.registry != "" { - spec = fmt.Sprintf("%s/%s", ip.registry, spec) - } - return spec -} |