mirror of
https://github.com/containers/podman.git
synced 2025-07-25 17:20:20 +08:00
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
This commit is contained in:

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
|
||||
}
|
||||
|
Reference in New Issue
Block a user