Browse Source

Remove unused daemon/sorter.go

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Guillaume J. Charmes 11 năm trước cách đây
mục cha
commit
8913ec4912
1 tập tin đã thay đổi với 0 bổ sung25 xóa
  1. 0 25
      daemon/sorter.go

+ 0 - 25
daemon/sorter.go

@@ -1,25 +0,0 @@
-package daemon
-
-import "sort"
-
-type containerSorter struct {
-	containers []*Container
-	by         func(i, j *Container) bool
-}
-
-func (s *containerSorter) Len() int {
-	return len(s.containers)
-}
-
-func (s *containerSorter) Swap(i, j int) {
-	s.containers[i], s.containers[j] = s.containers[j], s.containers[i]
-}
-
-func (s *containerSorter) Less(i, j int) bool {
-	return s.by(s.containers[i], s.containers[j])
-}
-
-func sortContainers(containers []*Container, predicate func(i, j *Container) bool) {
-	s := &containerSorter{containers, predicate}
-	sort.Sort(s)
-}