Remove memoize dependency.

This commit is contained in:
Vincent Zhang 2018-06-13 21:36:06 +08:00
parent ababcb464f
commit 553f1a8190

View file

@ -47,7 +47,6 @@
(require 'projectile) (require 'projectile)
(require 'all-the-icons) (require 'all-the-icons)
(require 'dash) (require 'dash)
(require 'memoize)
(require 'shrink-path) (require 'shrink-path)
(require 'eldoc-eval) (require 'eldoc-eval)
@ -492,17 +491,6 @@ If TRUNCATE-TAIL is t also truncate the parent directory of the file."
(when (and (display-graphic-p) (not (eq system-type 'windows-nt))) (when (and (display-graphic-p) (not (eq system-type 'windows-nt)))
(apply 'all-the-icons-material args))) (apply 'all-the-icons-material args)))
(defmemoize doom-modeline-file-relative-name (filename directory)
(file-relative-name filename directory))
(defmemoize doom-modeline-abbreviate-file-name (file-name)
(abbreviate-file-name file-name))
(defmemoize doom-modeline-shrink-path-file-mixed (project-root file-name)
(shrink-path-file-mixed project-root
(file-name-directory file-name)
file-name))
(defun doom-modeline--buffer-file-name-relative (&optional include-project) (defun doom-modeline--buffer-file-name-relative (&optional include-project)
"Propertized `buffer-file-name' showing directories relative to project's root only." "Propertized `buffer-file-name' showing directories relative to project's root only."
(let ((root (doom-modeline-project-root)) (let ((root (doom-modeline-project-root))