Revert "org-persist-gc: GC collections without persist file"

`org-persist-gc' is ran before `org-persist-write-all' and we may not
yet have all the persist files written.  Absence of a persist files is
thus not a sign that collection is expired.

This reverts commit e11073d17d.
This commit is contained in:
Ihor Radchenko 2023-05-06 17:50:18 +02:00
parent 080710797a
commit 8944124edf
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 2 deletions

View File

@ -1210,8 +1210,7 @@ Also, remove containers associated with non-existing files."
(setq expired? t)))
(if expired?
(org-persist--gc-persist-file persist-file)
(when (file-exists-p persist-file)
(push collection new-index))
(push collection new-index)
(dolist (container (plist-get collection :container))
(dolist (associated-file
(org-persist-associated-files:generic