From 553f1a8190254520954767f174c2e37b52d7b26b Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 13 Jun 2018 21:36:06 +0800 Subject: [PATCH] Remove memoize dependency. --- doom-modeline.el | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 91b7040..0577fb5 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -47,7 +47,6 @@ (require 'projectile) (require 'all-the-icons) (require 'dash) -(require 'memoize) (require 'shrink-path) (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))) (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) "Propertized `buffer-file-name' showing directories relative to project's root only." (let ((root (doom-modeline-project-root))