mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 12:49:38 +00:00
assume the declare-function macro exists
Since `declare-function' was added in Emacs 23.1 (five years ago), we don't need to assert that it is defined. If the assertion was without any problems there would be no harm in keeping it, but unfortunately it causes a compile warning. Because `declare-function' is a macro with always expands to `nil' the value of (fboundp 'declare-function) ends up being unused.
This commit is contained in:
parent
91953b08e0
commit
31bb0cde56
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@
|
||||||
(require 'bytecomp)
|
(require 'bytecomp)
|
||||||
(require 'diminish nil t)
|
(require 'diminish nil t)
|
||||||
|
|
||||||
(when (fboundp 'declare-function)
|
(declare-function package-installed-p 'package)
|
||||||
(declare-function package-installed-p 'package))
|
|
||||||
|
|
||||||
(defgroup use-package nil
|
(defgroup use-package nil
|
||||||
"A use-package declaration for simplifying your `.emacs'."
|
"A use-package declaration for simplifying your `.emacs'."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue