aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/yaml_util.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/admin/yaml_util.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/admin/yaml_util.go')
-rw-r--r--internal/admin/yaml_util.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/admin/yaml_util.go b/internal/admin/yaml_util.go
index 2ab7ec4..050a3f6 100644
--- a/internal/admin/yaml_util.go
+++ b/internal/admin/yaml_util.go
@@ -2,7 +2,6 @@ package admin
import (
"fmt"
- "log"
"os"
"path/filepath"
"strings"
@@ -133,15 +132,6 @@ func listYAMLTree(dataDir, subdir string) (*YAMLTree, error) {
return tree, nil
}
-func backupFile(path string) []byte {
- data, err := os.ReadFile(path)
- if err != nil {
- log.Printf("backup: WARNING failed to read %s: %v (undo will not be able to restore this file)", path, err)
- return nil
- }
- return data
-}
-
func snapshotFile(path string) ([]byte, error) {
return os.ReadFile(path)
}