avy.el (avy--process): Remove redundant copy-sequence

Hopefully redundant:)
This commit is contained in:
Oleh Krehel 2018-06-07 18:14:38 +02:00
parent 6331b7a6de
commit 8606a8984b

3
avy.el
View File

@ -734,7 +734,6 @@ Use OVERLAY-FN to visualize the decision overlay."
(mapcar (lambda (x) (cons x (selected-window))) (mapcar (lambda (x) (cons x (selected-window)))
candidates))) candidates)))
(let ((len (length candidates)) (let ((len (length candidates))
(cands (copy-sequence candidates))
res) res)
(if (= len 0) (if (= len 0)
(progn (progn
@ -758,7 +757,7 @@ Use OVERLAY-FN to visualize the decision overlay."
#'avy--remove-leading-chars))))) #'avy--remove-leading-chars)))))
(avy--done))) (avy--done)))
(cond ((eq res 'restart) (cond ((eq res 'restart)
(avy--process cands overlay-fn)) (avy--process candidates overlay-fn))
;; ignore exit from `avy-handler-function' ;; ignore exit from `avy-handler-function'
((eq res 'exit)) ((eq res 'exit))
(t (t