summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/container_ps.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-16 10:52:58 -0700
committerGitHub <noreply@github.com>2020-04-16 10:52:58 -0700
commit5def21140038fc34cee9707d3069bf52adc24577 (patch)
tree2582da76814b9eb636f11070b00a2dbb596754a5 /pkg/domain/entities/container_ps.go
parent8c4d4b58eee5e6d759199c36560af738aadc521d (diff)
parentba430bfe5ef65d5aa5ffa1fef0087da76aafcc35 (diff)
downloadpodman-5def21140038fc34cee9707d3069bf52adc24577.tar.gz
podman-5def21140038fc34cee9707d3069bf52adc24577.tar.bz2
podman-5def21140038fc34cee9707d3069bf52adc24577.zip
Merge pull request #5842 from baude/v2bloat2
podman v2 remove bloat v2
Diffstat (limited to 'pkg/domain/entities/container_ps.go')
-rw-r--r--pkg/domain/entities/container_ps.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go
index 33f5d0500..709bb58d6 100644
--- a/pkg/domain/entities/container_ps.go
+++ b/pkg/domain/entities/container_ps.go
@@ -4,7 +4,6 @@ import (
"sort"
"strings"
- "github.com/containers/libpod/libpod"
"github.com/containers/libpod/pkg/ps/define"
"github.com/cri-o/ocicni/pkg/ocicni"
"github.com/pkg/errors"
@@ -73,18 +72,6 @@ type ListContainerNamespaces struct {
User string `json:"User,omitempty"`
}
-// SortContainers helps us set-up ability to sort by createTime
-type SortContainers []*libpod.Container
-
-func (a SortContainers) Len() int { return len(a) }
-func (a SortContainers) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
-
-type SortCreateTime struct{ SortContainers }
-
-func (a SortCreateTime) Less(i, j int) bool {
- return a.SortContainers[i].CreatedTime().Before(a.SortContainers[j].CreatedTime())
-}
-
type SortListContainers []ListContainer
func (a SortListContainers) Len() int { return len(a) }