summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-03-20 10:22:21 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-03-21 20:14:40 +0100
commite31a3d3841bf8cf07886b831640fcb66d4440215 (patch)
treecef866b3b7b3e09d718072ea55ce0425e85abba0 /cmd/podman
parent68e3df37248da85f58662c00e0934d1359f0fdc0 (diff)
downloadpodman-e31a3d3841bf8cf07886b831640fcb66d4440215.tar.gz
podman-e31a3d3841bf8cf07886b831640fcb66d4440215.tar.bz2
podman-e31a3d3841bf8cf07886b831640fcb66d4440215.zip
utils: drop dead function
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/utils.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/cmd/podman/utils.go b/cmd/podman/utils.go
index 4ec0f8a13..45d081512 100644
--- a/cmd/podman/utils.go
+++ b/cmd/podman/utils.go
@@ -200,35 +200,6 @@ func getPodsFromContext(c *cliconfig.PodmanCommand, r *libpod.Runtime) ([]*libpo
return pods, lastError
}
-func getVolumesFromContext(c *cliconfig.PodmanCommand, r *libpod.Runtime) ([]*libpod.Volume, error) {
- args := c.InputArgs
- var (
- vols []*libpod.Volume
- lastError error
- err error
- )
-
- if c.Bool("all") {
- vols, err = r.Volumes()
- if err != nil {
- return nil, errors.Wrapf(err, "unable to get all volumes")
- }
- }
-
- for _, i := range args {
- vol, err := r.GetVolume(i)
- if err != nil {
- if lastError != nil {
- logrus.Errorf("%q", lastError)
- }
- lastError = errors.Wrapf(err, "unable to find volume %s", i)
- continue
- }
- vols = append(vols, vol)
- }
- return vols, lastError
-}
-
//printParallelOutput takes the map of parallel worker results and outputs them
// to stdout
func printParallelOutput(m map[string]error, errCount int) error {