diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-28 04:22:58 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:59 +0000 |
commit | 86fb1bf8eb311551626e5877938a7d9d5aee6dac (patch) | |
tree | 9d8fe3838166e4658297f6ea62a778bdc60b2539 /libpod/image/pull.go | |
parent | 90abdfdff52a8b243f96639793ab5a3499fed1ab (diff) | |
download | podman-86fb1bf8eb311551626e5877938a7d9d5aee6dac.tar.gz podman-86fb1bf8eb311551626e5877938a7d9d5aee6dac.tar.bz2 podman-86fb1bf8eb311551626e5877938a7d9d5aee6dac.zip |
Remove an unnecessary use of alltransports.ParseImageName
When the string is formatted including a constant transport name,
just call the transport to create or parse a reference explicitly.
This avoids unnecessary string formatting and parsing.
Then drop image.TarballTransport, which has no remaining users.
Should not change behavior (but does not add unit tests).
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1176
Approved by: rhatdan
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r-- | libpod/image/pull.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go index 43d1ab837..060bab82a 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -15,7 +15,6 @@ import ( ociarchive "github.com/containers/image/oci/archive" "github.com/containers/image/pkg/sysregistries" is "github.com/containers/image/storage" - "github.com/containers/image/tarball" "github.com/containers/image/transports" "github.com/containers/image/transports/alltransports" "github.com/containers/image/types" @@ -35,9 +34,6 @@ var ( // DirTransport is the transport for pushing and pulling // images to and from a directory DirTransport = directory.Transport.Name() - // TarballTransport is the transport for importing a tar archive - // and creating a filesystem image - TarballTransport = tarball.Transport.Name() // DockerTransport is the transport for docker registries DockerTransport = docker.Transport.Name() // AtomicTransport is the transport for atomic registries |