doom//byte-compile: cl-pushnew => push (redundant w/ cl-delete-duplicates)

This commit is contained in:
Henrik Lissner 2018-05-25 16:56:08 +02:00
parent ef9b30cdef
commit 068979591a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -314,10 +314,8 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(condition-case ex (condition-case ex
(let ((use-package-expand-minimally t)) (let ((use-package-expand-minimally t))
;; Always compile private init file ;; Always compile private init file
(cl-pushnew (expand-file-name "init.el" doom-private-dir) (push (expand-file-name "init.el" doom-private-dir) target-files)
target-files :test #'equal) (push (expand-file-name "init.el" doom-emacs-dir) target-files)
(cl-pushnew (expand-file-name "init.el" doom-emacs-dir)
target-files :test #'equal)
(dolist (target (cl-delete-duplicates (mapcar #'file-truename target-files) :test #'equal)) (dolist (target (cl-delete-duplicates (mapcar #'file-truename target-files) :test #'equal))
(if (or (not recompile-p) (if (or (not recompile-p)
(let ((elc-file (byte-compile-dest-file target))) (let ((elc-file (byte-compile-dest-file target)))