refactor: doom-profile-generate: remove defunct build step

Since 87a024e, the profile init files are no longer byte-compiled, so
this block of code -- responsible for deleting byte-compiled init files
-- is no longer needed.

Amend: 87a024ee90
This commit is contained in:
Henrik Lissner
2024-12-07 17:55:09 -05:00
parent 0a715cc3f2
commit 68edae421f

View File

@ -255,12 +255,6 @@ caches them in `doom--profiles'. If RELOAD? is non-nil, refresh the cache."
(with-file-modes #o750
(print-group!
(make-directory init-dir t)
(print! (start "Deleting old init files..."))
(print-group! :level 'info
(cl-loop for file in (cons init-file (doom-glob "*.elc"))
if (file-exists-p file)
do (print! (item "Deleting %s...") file)
and do (delete-file file)))
(let ((auto-files (doom-glob init-dir "*.auto.el")))
(print! (start "Generating %d init files...") (length doom-profile-generators))
(print-group! :level 'info