Simplify effect-free code elimination
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Simplify overly defensive code. This does not affect code generation.
This commit is contained in:
parent
522b82118d
commit
42f4691388
1 changed files with 1 additions and 3 deletions
|
@ -515,9 +515,7 @@ for speeding up processing.")
|
|||
form)
|
||||
nil)))))
|
||||
(byte-compile-log " %s called for effect; deleted" fn)
|
||||
;; appending a nil here might not be necessary, but it can't hurt.
|
||||
(byte-optimize-form
|
||||
(cons 'progn (append (cdr form) '(nil))) t))
|
||||
(byte-optimize-form (cons 'progn (cdr form)) t))
|
||||
|
||||
(_
|
||||
;; Otherwise, no args can be considered to be for-effect,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue