From a6cf03a6ae98e4fb675da25046d148e92bcf7206 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 15:00:46 -0400 Subject: chore: staticcheck and gofmt cleanups --- internal/admin/yaml_util.go | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'internal/admin/yaml_util.go') diff --git a/internal/admin/yaml_util.go b/internal/admin/yaml_util.go index 9ef8058..6ea6692 100644 --- a/internal/admin/yaml_util.go +++ b/internal/admin/yaml_util.go @@ -142,23 +142,6 @@ func listYAMLTree(dataDir, subdir string) (*YAMLTree, error) { return tree, nil } -func listYAMLFilesDeep(dataDir, subdir string) ([]string, error) { - var ids []string - base := filepath.Join(dataDir, subdir) - err := filepath.WalkDir(base, func(path string, d os.DirEntry, err error) error { - if err != nil { - return err - } - if !d.IsDir() && filepath.Ext(d.Name()) == ".yaml" { - rel, _ := filepath.Rel(base, path) - id := rel[:len(rel)-5] - ids = append(ids, id) - } - return nil - }) - return ids, err -} - func backupFile(path string) []byte { data, err := os.ReadFile(path) if err != nil { -- cgit v1.2.3