aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/yaml_util.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 15:00:46 -0400
committerhistoria <[not public]>2026-09-16 15:00:46 -0400
commita6cf03a6ae98e4fb675da25046d148e92bcf7206 (patch)
tree194499fe9e696be8c31cd915b7ad92678f9f95e0 /internal/admin/yaml_util.go
parent9192d94dea6be5498ab080f3e2df5667af871d7a (diff)
downloadthehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz
chore: staticcheck and gofmt cleanups
Diffstat (limited to 'internal/admin/yaml_util.go')
-rw-r--r--internal/admin/yaml_util.go17
1 files changed, 0 insertions, 17 deletions
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 {