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: 
Approved by: rhatdan
This commit is contained in:
Miloslav Trmač
2018-07-18 22:43:10 +02:00
committed by Atomic Bot
parent 014b3dcc35
commit 501acd460e

@ -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
}