aboutsummaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/worker.go b/worker.go
index d86852d..f58363c 100644
--- a/worker.go
+++ b/worker.go
@@ -4,10 +4,8 @@
package lilin
import (
- "maps"
"os"
"path/filepath"
- "slices"
"strings"
"sync"
@@ -85,14 +83,3 @@ func (wrk *worker) loadServiceDir(configDir string) (err error) {
}
return nil
}
-
-// summary return all services status ordered by name.
-func (wrk *worker) summary() (list []Service) {
- wrk.Lock()
- var keys = slices.Sorted(maps.Keys(wrk.Services))
- for _, name := range keys {
- list = append(list, *wrk.Services[name])
- }
- wrk.Unlock()
- return list
-}