summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-util.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-02-13 17:31:10 +1100
committerLars Ingebrigtsen <larsi@gnus.org>2016-02-13 17:31:10 +1100
commit6d4761330d7e2cf94ce8df07744c7b297bebb79e (patch)
tree89a453e153e78ff6e99fe14750a4a8986095f94b /lisp/gnus/gnus-util.el
parentbfee9fab2f51a94db68247c6ee6eedebb7669209 (diff)
downloademacs-6d4761330d7e2cf94ce8df07744c7b297bebb79e.tar.gz
Remove the gnus-delete-alist alias
* lisp/gnus/gnus-util.el (gnus-run-mode-hooks): Remove compat code. (gnus-delete-alist): Remove.
Diffstat (limited to 'lisp/gnus/gnus-util.el')
-rw-r--r--lisp/gnus/gnus-util.el17
1 files changed, 2 insertions, 15 deletions
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 23a16763202..ff980416a28 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1115,11 +1115,8 @@ ARG is passed to the first function."
(apply 'run-hook-with-args hook args)))
(defun gnus-run-mode-hooks (&rest funcs)
- "Run `run-mode-hooks' if it is available, otherwise `run-hooks'.
-This function saves the current buffer."
- (if (fboundp 'run-mode-hooks)
- (save-current-buffer (apply 'run-mode-hooks funcs))
- (save-current-buffer (apply 'run-hooks funcs))))
+ "Run `run-mode-hooks', saving the current buffer."
+ (save-current-buffer (apply 'run-mode-hooks funcs)))
;;; Various
@@ -1167,16 +1164,6 @@ If HASH-TABLE-P is non-nil, regards SEQUENCE as a hash table."
(setq sequence (cdr sequence))))
(nreverse out)))
-(if (fboundp 'assq-delete-all)
- (defalias 'gnus-delete-alist 'assq-delete-all)
- (defun gnus-delete-alist (key alist)
- "Delete from ALIST all elements whose car is KEY.
-Return the modified alist."
- (let (entry)
- (while (setq entry (assq key alist))
- (setq alist (delq entry alist)))
- alist)))
-
(defun gnus-grep-in-list (word list)
"Find if a WORD matches any regular expression in the given LIST."
(when (and word list)