summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-18 22:43:10 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-23 12:44:38 +0000
commit501acd460ef0acd5c4ab8d935efc1696916d23fe (patch)
treeeb82783aa933fff04e6aae29919b1d8bb623bb2b
parent014b3dcc356c165638aa57669f0a550ad5b1e2e7 (diff)
downloadpodman-501acd460ef0acd5c4ab8d935efc1696916d23fe.tar.gz
podman-501acd460ef0acd5c4ab8d935efc1696916d23fe.tar.bz2
podman-501acd460ef0acd5c4ab8d935efc1696916d23fe.zip
Remove Image.isShortName
It has no users, and it depends on the incorrect imageParts.hasRegistry. So, just drop it instead of worrying whether it is OK to change its semantics. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1112 Approved by: rhatdan
-rw-r--r--libpod/image/pull.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index 3bfbc912c..cb2de8fc2 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -326,13 +326,3 @@ func (i *Image) createNamesToPull() ([]*pullStruct, error) {
return pullNames, nil
}
-
-// isShortName returns a bool response if the input image name has a registry
-// name in it or not
-func (i *Image) isShortName() (bool, error) {
- decomposedImage, err := decompose(i.InputName)
- if err != nil {
- return false, err
- }
- return decomposedImage.hasRegistry, nil
-}