diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-28 02:43:41 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:58 +0000 |
commit | 9770ed257e9ee34dc3506c0f52c9f5f5a66ee57f (patch) | |
tree | 65525c2f076f112b69748bb748a770cabd4509e1 /libpod | |
parent | adfd3930c1799465aa7b9b9c4fcb3ed19e1b36bf (diff) | |
download | podman-9770ed257e9ee34dc3506c0f52c9f5f5a66ee57f.tar.gz podman-9770ed257e9ee34dc3506c0f52c9f5f5a66ee57f.tar.bz2 podman-9770ed257e9ee34dc3506c0f52c9f5f5a66ee57f.zip |
Remove the TransportNames arrays
They are not used anywhere AFAICS, and the underlying idea
that transport-specific image names are reusable across transports
is very dubious anyway. So, drop them instead of documenting
or fixing them.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1176
Approved by: rhatdan
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/image/pull.go | 2 | ||||
-rw-r--r-- | libpod/runtime_img.go | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go index 389ea4e9e..269b73d08 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -34,8 +34,6 @@ var ( // DirTransport is the transport for pushing and pulling // images to and from a directory DirTransport = directory.Transport.Name() - // TransportNames are the supported transports in string form - TransportNames = [...]string{DefaultTransport, DockerArchive, OCIArchive, "ostree:", "dir:"} // TarballTransport is the transport for importing a tar archive // and creating a filesystem image TarballTransport = tarball.Transport.Name() diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go index d127d753f..f6038f8d0 100644 --- a/libpod/runtime_img.go +++ b/libpod/runtime_img.go @@ -31,8 +31,6 @@ var ( // DirTransport is the transport for pushing and pulling // images to and from a directory DirTransport = directory.Transport.Name() - // TransportNames are the supported transports in string form - TransportNames = [...]string{DefaultTransport, DockerArchive, OCIArchive, "ostree:", "dir:"} // TarballTransport is the transport for importing a tar archive // and creating a filesystem image TarballTransport = tarball.Transport.Name() |