summaryrefslogtreecommitdiff
path: root/libpod/image/parts.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2019-01-09 18:47:09 +0100
committerMiloslav Trmač <mitr@redhat.com>2019-01-14 04:07:23 +0100
commit3d98c42a3f7822bf608834505adcffec7f75bf28 (patch)
tree11d29f96b8fb1d18a85abd8d77572cb7dc22e261 /libpod/image/parts.go
parentc19294c0113e4ddea7005bab5d8a31f7ecd6c120 (diff)
downloadpodman-3d98c42a3f7822bf608834505adcffec7f75bf28.tar.gz
podman-3d98c42a3f7822bf608834505adcffec7f75bf28.tar.bz2
podman-3d98c42a3f7822bf608834505adcffec7f75bf28.zip
Inline imageParts.assembleWithTransport into callers
imageParts.transport is a constant, and the design of imageParts is not transport-independent in any sense; we will want to eliminate the transport member entirely. As a first step, drop assembleWithTransport and inline an exact equivalent into all callers. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image/parts.go')
-rw-r--r--libpod/image/parts.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/libpod/image/parts.go b/libpod/image/parts.go
index 289a02e1f..cf774030b 100644
--- a/libpod/image/parts.go
+++ b/libpod/image/parts.go
@@ -87,8 +87,3 @@ func (ip *imageParts) assemble() string {
}
return spec
}
-
-// assemble concatenates an image's parts with transport into a string
-func (ip *imageParts) assembleWithTransport() string {
- return fmt.Sprintf("%s%s", ip.transport, ip.assemble())
-}