branch: externals/lin
commit 11cd70c0f501aa2a15c2a1417dbf1e2a3d2455be
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Simplify lin--setup-remove-hooks
---
lin.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lin.el b/lin.el
index 498691a2a5..ed809a2644 100644
--- a/lin.el
+++ b/lin.el
@@ -359,9 +359,9 @@ Line numbers come from the `display-line-numbers-mode'."
(dolist (hook lin-mode-hooks)
(add-hook hook #'lin-mode)))
-(defun lin--setup-remove-hooks (&optional hooks)
- "Remove `lin-mode-hooks' or, optionally, HOOKS."
- (dolist (hook (or hooks lin-mode-hooks))
+(defun lin--setup-remove-hooks ()
+ "Remove `lin-mode-hooks'."
+ (dolist (hook lin-mode-hooks)
(remove-hook hook #'lin-mode)))
(defun lin--setup (&optional remove)