summaryrefslogtreecommitdiff
path: root/cmd/podman/pod_stats.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-03-22 09:56:34 +0100
committerSascha Grunert <sgrunert@suse.com>2019-04-04 09:07:05 +0200
commit81a4451fea812d65ddef4b3a4fc821cbfefd7670 (patch)
tree2b7fe3a3df1f08a106c012a74580604020421bd6 /cmd/podman/pod_stats.go
parent42830ab711aadb69e344a58627c6c7cfee45ddc9 (diff)
downloadpodman-81a4451fea812d65ddef4b3a4fc821cbfefd7670.tar.gz
podman-81a4451fea812d65ddef4b3a4fc821cbfefd7670.tar.bz2
podman-81a4451fea812d65ddef4b3a4fc821cbfefd7670.zip
Add deadcode linter
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'cmd/podman/pod_stats.go')
-rw-r--r--cmd/podman/pod_stats.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/cmd/podman/pod_stats.go b/cmd/podman/pod_stats.go
index 36b0b95ed..744602268 100644
--- a/cmd/podman/pod_stats.go
+++ b/cmd/podman/pod_stats.go
@@ -298,17 +298,3 @@ func outputJson(stats []*adapter.PodContainerStats) error {
fmt.Println(string(b))
return nil
}
-
-func getPodsByList(podList []string, r *libpod.Runtime) ([]*libpod.Pod, error) {
- var (
- pods []*libpod.Pod
- )
- for _, p := range podList {
- pod, err := r.LookupPod(p)
- if err != nil {
- return nil, err
- }
- pods = append(pods, pod)
- }
- return pods, nil
-}