summaryrefslogtreecommitdiff
path: root/lisp/eshell/esh-io.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-08-18 12:12:02 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-18 12:12:02 +0200
commit75233e3ee088ba84d6935c559ee67a79ccf2477d (patch)
tree8b2a625d0261a913fe1c9822e12b65a543622050 /lisp/eshell/esh-io.el
parente0e3fe4e7de5395a042e8a14d95ba78b0045789f (diff)
downloademacs-75233e3ee088ba84d6935c559ee67a79ccf2477d.tar.gz
emacs-75233e3ee088ba84d6935c559ee67a79ccf2477d.tar.bz2
emacs-75233e3ee088ba84d6935c559ee67a79ccf2477d.zip
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.
Diffstat (limited to 'lisp/eshell/esh-io.el')
-rw-r--r--lisp/eshell/esh-io.el7
1 files changed, 1 insertions, 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))