From 75233e3ee088ba84d6935c559ee67a79ccf2477d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 18 Aug 2020 12:12:02 +0200 Subject: [PATCH] Remove some compat code from esh-io.el * lisp/eshell/esh-io.el (eshell-set-output-handle): Remove check for null-device, which is always bound. --- lisp/eshell/esh-io.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el index 0aa4ec4d16c..b4154861908 100644 --- a/lisp/eshell/esh-io.el +++ b/lisp/eshell/esh-io.el @@ -382,12 +382,7 @@ it defaults to `insert'." "Set handle INDEX, using MODE, to point to TARGET." (when target (if (and (stringp target) - (or (cond - ((boundp 'null-device) - (string= target null-device)) - ((boundp 'grep-null-device) - (string= target grep-null-device)) - (t nil)) + (or (string= target null-device) (string= target "/dev/null"))) (aset eshell-current-handles index nil) (let ((where (eshell-get-target target mode)) -- 2.39.5