From 765dcc709c6bbb0ae246e5f680daa585f3f53573 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Wed, 9 Sep 2015 15:09:31 +0200 Subject: [PATCH] Remove redundant redefinition of seq-drop-while from seq.el * lisp/emacs-lisp/seq.el (seq-drop-while): Define only once. --- lisp/emacs-lisp/seq.el | 8 +------- 1 file changed, 1 insertion(+), 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) -- 2.39.2