Remove duplicate app state group deletion

This commit is contained in:
Joe Julian
2026-03-29 13:35:17 -07:00
parent e693aab13b
commit 3d0a6bc43a
-22
View File
@@ -496,28 +496,6 @@ func (s *State) NavigateToPath(path []string) {
s.SelectedEntryID = ""
}
func (s *State) DeleteCurrentGroup() error {
session, ok := s.Session.(MutableSession)
if !ok {
return fmt.Errorf("session is not mutable")
}
model, err := session.Current()
if err != nil {
return err
}
if err := model.DeleteGroup(s.CurrentPath); err != nil {
return err
}
session.Replace(model)
if len(s.CurrentPath) > 0 {
s.CurrentPath = append([]string(nil), s.CurrentPath[:len(s.CurrentPath)-1]...)
}
s.Dirty = true
return nil
}
func (s *State) Save() error {
session, ok := s.Session.(SaveableSession)
if !ok {