summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/seq.el
diff options
context:
space:
mode:
authorOleh Krehel <ohwoeowho@gmail.com>2015-09-09 15:09:31 +0200
committerOleh Krehel <ohwoeowho@gmail.com>2015-09-09 15:10:15 +0200
commit765dcc709c6bbb0ae246e5f680daa585f3f53573 (patch)
treee97b4af7ed2b4faa280e92d321e28d27cd71f9d6 /lisp/emacs-lisp/seq.el
parentb074436925a0fe8329ef86d0a36238f5c593888c (diff)
downloademacs-765dcc709c6bbb0ae246e5f680daa585f3f53573.tar.gz
Remove redundant redefinition of seq-drop-while from seq.el
* lisp/emacs-lisp/seq.el (seq-drop-while): Define only once.
Diffstat (limited to 'lisp/emacs-lisp/seq.el')
-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."
(nreverse result)))
(cl-defmethod seq-drop-while (pred (list list))
- "Optimized implementation of `seq-drop-while' for lists"
- (while (and list (funcall pred (car list)))
- (setq list (cdr list)))
- list)
-
-(cl-defmethod seq-drop-while (pred (list list))
- "Optimized implementation of `seq-drop-while' for lists"
+ "Optimized implementation of `seq-drop-while' for lists."
(while (and list (funcall pred (car list)))
(setq list (cdr list)))
list)