aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleh Krehel2015-09-09 15:09:31 +0200
committerOleh Krehel2015-09-09 15:10:15 +0200
commit765dcc709c6bbb0ae246e5f680daa585f3f53573 (patch)
treee97b4af7ed2b4faa280e92d321e28d27cd71f9d6
parentb074436925a0fe8329ef86d0a36238f5c593888c (diff)
downloademacs-765dcc709c6bbb0ae246e5f680daa585f3f53573.tar.gz
emacs-765dcc709c6bbb0ae246e5f680daa585f3f53573.zip
Remove redundant redefinition of seq-drop-while from seq.el
* lisp/emacs-lisp/seq.el (seq-drop-while): Define only once.
-rw-r--r--lisp/emacs-lisp/seq.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el
index 8dc91471312..751c18f4aae 100644
--- a/lisp/emacs-lisp/seq.el
+++ b/lisp/emacs-lisp/seq.el
@@ -417,13 +417,7 @@ If no element is found, return nil."
417 (nreverse result))) 417 (nreverse result)))
418 418
419(cl-defmethod seq-drop-while (pred (list list)) 419(cl-defmethod seq-drop-while (pred (list list))
420 "Optimized implementation of `seq-drop-while' for lists" 420 "Optimized implementation of `seq-drop-while' for lists."
421 (while (and list (funcall pred (car list)))
422 (setq list (cdr list)))
423 list)
424
425(cl-defmethod seq-drop-while (pred (list list))
426 "Optimized implementation of `seq-drop-while' for lists"
427 (while (and list (funcall pred (car list))) 421 (while (and list (funcall pred (car list)))
428 (setq list (cdr list))) 422 (setq list (cdr list)))
429 list) 423 list)