branch: externals/lin
commit 91e4a9191cfd7e48106a0676c27f08f4ea3b51b0
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Remove useless internal variable
---
 lin.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lin.el b/lin.el
index 16840f0201..498691a2a5 100644
--- a/lin.el
+++ b/lin.el
@@ -364,9 +364,6 @@ Line numbers come from the `display-line-numbers-mode'."
   (dolist (hook (or hooks lin-mode-hooks))
     (remove-hook hook #'lin-mode)))
 
-(defvar lin--setup-hooks nil
-  "Last value used by `lin--setup'.")
-
 (defun lin--setup (&optional remove)
   "Set up Lin for select mode hooks.
 
@@ -376,8 +373,7 @@ This adds `lin-mode' and `hl-line-mode' to every hook in
 With optional non-nil REMOVE argument, remove those hooks."
   (lin--setup-remove-hooks)
   (unless remove
-    (lin--setup-add-hooks))
-  (setq lin--setup-hooks lin-mode-hooks))
+    (lin--setup-add-hooks)))
 
 (defun lin--mode-enable (buffer)
   "Enable `lin-mode' in BUFFER if appropriate."

Reply via email to