Remove unused function in bytecomp.el
authorMattias Engdegård <mattiase@acm.org>
Thu, 23 Jun 2022 12:33:46 +0000 (14:33 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 23 Jun 2022 15:04:56 +0000 (17:04 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-delete-first): Remove.

lisp/emacs-lisp/bytecomp.el

index 4fd65bb5d5399dba7fbc322a3e9b76df62902f3a..a8c68f81531727885e62b35809e19af0fa40664d 100644 (file)
@@ -1174,18 +1174,6 @@ message buffer `default-directory'."
            (t
             (insert (format "%s\n" string)))))))
 
-;; copied from gnus-util.el
-(defsubst byte-compile-delete-first (elt list)
-  (if (eq (car list) elt)
-      (cdr list)
-    (let ((total list))
-      (while (and (cdr list)
-                 (not (eq (cadr list) elt)))
-       (setq list (cdr list)))
-      (when (cdr list)
-       (setcdr list (cddr list)))
-      total)))
-
 (defvar byte-compile-last-warned-form nil)
 (defvar byte-compile-last-logged-file nil)
 (defvar byte-compile-root-dir nil