From 9770ed257e9ee34dc3506c0f52c9f5f5a66ee57f Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Sat, 28 Jul 2018 02:43:41 +0200 Subject: Remove the TransportNames arrays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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č Closes: #1176 Approved by: rhatdan --- libpod/image/pull.go | 2 -- libpod/runtime_img.go | 2 -- 2 files changed, 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() -- cgit v1.2.3-54-g00ecf