summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-28 02:43:41 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-01 18:22:58 +0000
commit9770ed257e9ee34dc3506c0f52c9f5f5a66ee57f (patch)
tree65525c2f076f112b69748bb748a770cabd4509e1 /libpod
parentadfd3930c1799465aa7b9b9c4fcb3ed19e1b36bf (diff)
downloadpodman-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.go2
-rw-r--r--libpod/runtime_img.go2
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()