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
This commit is contained in:
Miloslav Trmač
2018-07-28 02:43:41 +02:00
committed by Atomic Bot
parent adfd3930c1
commit 9770ed257e
2 changed files with 0 additions and 4 deletions

View File

@ -34,8 +34,6 @@ var (
// DirTransport is the transport for pushing and pulling // DirTransport is the transport for pushing and pulling
// images to and from a directory // images to and from a directory
DirTransport = directory.Transport.Name() 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 // TarballTransport is the transport for importing a tar archive
// and creating a filesystem image // and creating a filesystem image
TarballTransport = tarball.Transport.Name() TarballTransport = tarball.Transport.Name()

View File

@ -31,8 +31,6 @@ var (
// DirTransport is the transport for pushing and pulling // DirTransport is the transport for pushing and pulling
// images to and from a directory // images to and from a directory
DirTransport = directory.Transport.Name() 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 // TarballTransport is the transport for importing a tar archive
// and creating a filesystem image // and creating a filesystem image
TarballTransport = tarball.Transport.Name() TarballTransport = tarball.Transport.Name()