From 501acd460ef0acd5c4ab8d935efc1696916d23fe Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Wed, 18 Jul 2018 22:43:10 +0200 Subject: Remove Image.isShortName MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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č Closes: #1112 Approved by: rhatdan --- libpod/image/pull.go | 10 ---------- 1 file changed, 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 -} -- cgit v1.2.3-54-g00ecf