Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions internal/memory/forget.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"path/filepath"
"sort"
"strings"
"time"

"github.com/topcheer/ggcode/internal/debug"
Expand Down Expand Up @@ -138,14 +137,3 @@ func (am *AutoMemory) ListForgotten() []string {
}
return out
}

// forgottenLine returns one display line for a forgotten key, or "" when
// the key is not forgotten. Used by list views that annotate entries.
func (am *AutoMemory) forgottenLine(key string) string {
f := am.loadForgotten()
at, ok := f.Entries[key]
if !ok {
return ""
}
return strings.TrimSpace(fmt.Sprintf("%s [forgotten %s ago]", key, time.Since(at).Round(time.Minute)))
}
Loading