doom/recompile: remove redundant filter

This commit is contained in:
Henrik Lissner 2017-02-20 13:28:11 -05:00
parent 052a084ba4
commit 4ae7257f80

View file

@ -437,13 +437,7 @@ This may take a while."
(n 0) (n 0)
results) results)
(dolist (path (doom--module-paths)) (dolist (path (doom--module-paths))
(nconc targets (nconc targets (reverse (directory-files-recursively path "\\.el$"))))
(cl-remove-if (lambda (file)
(let ((fname (file-name-nondirectory file)))
(or (string= fname ".")
(string= fname ".."))))
(reverse
(directory-files-recursively path "\\.el$")))))
(dolist (file targets) (dolist (file targets)
(push (cons (file-relative-name file doom-emacs-dir) (push (cons (file-relative-name file doom-emacs-dir)
(and (byte-recompile-file file nil 0) (and (byte-recompile-file file nil 0)