diff --git a/internal/memory/forget.go b/internal/memory/forget.go index f4308cd93..3f1d49b9a 100644 --- a/internal/memory/forget.go +++ b/internal/memory/forget.go @@ -6,7 +6,6 @@ import ( "os" "path/filepath" "sort" - "strings" "time" "github.com/topcheer/ggcode/internal/debug" @@ -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))) -}