diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2023-02-18 12:39:17 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2023-02-18 12:44:00 +0100 |
commit | 97f24924df62303c944176510038f398370f8fb6 (patch) | |
tree | 71181773b953ac24fbbef09161b756e186e6ee0b /lisp/emacs-lisp | |
parent | 0be5f7ab6368175953c0a5bcbbd485fd9edda2b0 (diff) | |
download | emacs-97f24924df62303c944176510038f398370f8fb6.tar.gz emacs-97f24924df62303c944176510038f398370f8fb6.tar.bz2 emacs-97f24924df62303c944176510038f398370f8fb6.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 7 |
1 files changed, 2 insertions, 5 deletions
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)) "/")) |