From: Stefan Kangas Date: Sat, 18 Feb 2023 11:39:17 +0000 (+0100) Subject: Remove redundant requires from package.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=97f24924df62303c944176510038f398370f8fb6;p=emacs.git Remove redundant requires from package.el * lisp/emacs-lisp/package.el (package-check-signature) (package-untar-buffer): Simplify by removing redundant require for autoloaded function. --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 09917cd29b1..a0bb5e75393 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -378,10 +378,8 @@ If so, and variable `package-check-signature' is `allow-unsigned', return `allow-unsigned', otherwise return the value of variable `package-check-signature'." (if (eq package-check-signature 'allow-unsigned) - (progn - (require 'epg-config) - (and (epg-find-configuration 'OpenPGP) - 'allow-unsigned)) + (and (epg-find-configuration 'OpenPGP) + 'allow-unsigned) package-check-signature)) (defcustom package-unsigned-archives nil @@ -958,7 +956,6 @@ Newer versions are always activated, regardless of FORCE." "Untar the current buffer. This uses `tar-untar-buffer' from Tar mode. All files should untar into a directory named DIR; otherwise, signal an error." - (require 'tar-mode) (tar-mode) ;; Make sure everything extracts into DIR. (let ((regexp (concat "\\`" (regexp-quote (expand-file-name dir)) "/"))