]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-form-code-walker): Simplify a bit
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Mar 2024 02:13:44 +0000 (22:13 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Mar 2024 20:38:45 +0000 (21:38 +0100)
Eliminate a case that matches very rarely and where the default
handling works just as well anyway.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Remove
redundant case.

(cherry picked from commit 83a6e80d66a4c6333e2bbb21d0428c432ddca881)

lisp/emacs-lisp/byte-opt.el

index f6df40a2d9b8ce526d3f97a86526b426ad8c42e4..54997205edb867c2ffef35b88fc603ff7fecf38a 100644 (file)
@@ -482,9 +482,6 @@ There can be multiple entries for the same NAME if it has several aliases.")
          (push name byte-optimize--dynamic-vars)
          `(,fn ,name . ,optimized-rest)))
 
-      (`(,(pred byte-code-function-p) . ,exps)
-       (cons fn (mapcar #'byte-optimize-form exps)))
-
       ((guard (when for-effect
                (if-let ((tmp (byte-opt--fget fn 'side-effect-free)))
                    (or byte-compile-delete-errors