Remove emacs-version check in autoloads file

Now that the autoload file's path is namespaced by version, this check
is no longer necessary.
This commit is contained in:
Henrik Lissner 2020-10-29 02:02:37 -04:00
parent 2b023357ee
commit dbeaa8e238
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -35,11 +35,7 @@ one wants that.")
(and (print! (start "Generating autoloads file..."))
(doom-autoloads--write
file
`((unless (equal emacs-major-version ,emacs-major-version)
(signal 'doom-error
(list "The installed version of Emacs has changed since last 'doom sync' ran"
"Run 'doom sync && doom build' to bring Doom up to speed")))
(unless (equal doom-version ,doom-version)
`((unless (equal doom-version ,doom-version)
(signal 'doom-error
(list "The installed version of Doom has changed since last 'doom sync' ran"
"Run 'doom sync' to bring Doom up to speed"))))