diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-20 10:22:21 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-21 20:14:40 +0100 |
commit | e31a3d3841bf8cf07886b831640fcb66d4440215 (patch) | |
tree | cef866b3b7b3e09d718072ea55ce0425e85abba0 /cmd/podman/utils.go | |
parent | 68e3df37248da85f58662c00e0934d1359f0fdc0 (diff) | |
download | podman-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/utils.go')
-rw-r--r-- | cmd/podman/utils.go | 29 |
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 { |