From 6af7338140d7dcb6f84078c1128a4a766218ce74 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 10 Sep 2022 17:51:40 -0400 Subject: [PATCH] refactor(lib): remove unreachable code in doom-print-class-alist An earlier element in this alist associates buffer with doom-print--buffer, so this later element is unreachable. --- lisp/lib/print.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/lisp/lib/print.el b/lisp/lib/print.el index 189268a56..e155b60c4 100644 --- a/lisp/lib/print.el +++ b/lisp/lib/print.el @@ -62,9 +62,6 @@ and `format!' into colored output, where COLOR is any car of this list.") (rtrim . string-trim-right) (ltrim . string-trim-left) (p . doom-print--paragraph) - (buffer . (lambda (buffer) - (with-current-buffer buffer - (buffer-string)))) (truncate . doom-print--truncate) (success . (lambda (str &rest args) (apply #'doom-print--style 'green