From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/admin/undo.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'internal/admin/undo.go') diff --git a/internal/admin/undo.go b/internal/admin/undo.go index d9ef263..d352100 100644 --- a/internal/admin/undo.go +++ b/internal/admin/undo.go @@ -835,18 +835,6 @@ func (us *UndoStack) load() { us.redo = toChanges(sd.Redo) } -func (us *UndoStack) Clear() { - us.mu.Lock() - defer us.mu.Unlock() - us.history = nil - us.redo = nil - us.lastErr = nil - os.Remove(us.filePath) - log.Printf("undo: cleared history") -} - -// LastError returns the error from the most recent failed Undo/Redo, or nil. -// A nil change plus a nil LastError means the history/redo stack was empty. func (us *UndoStack) LastError() error { us.mu.Lock() defer us.mu.Unlock() -- cgit v1.2.3