[core] Drop warning from spacemacs|use-package-add-hook

The original idea was to have a warning when
use-package-inject-hooks is set to nil however
having a warning in that macro caused too much
negative side effects and also does not cover
all cases.

Therefore it is to be removed.
This commit is contained in:
Maximilian Wolff 2020-06-14 21:09:07 +02:00
parent 5fcd84d845
commit c0288e8374
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
1 changed files with 0 additions and 6 deletions

View File

@ -45,12 +45,6 @@ override lazy-loaded settings."
name-symbol
(substring (format "%s" keyword) 1)))))
(push `(add-hook ',hook (lambda nil ,@body t)) expanded-forms)))))
(push `(when (not use-package-inject-hooks)
(message (concat "!!!!!!WARNING!!!!!! Called use-package-add-hook without"
" "
"use-package-inject-hooks non-nil, this will most probably not work.")))
expanded-forms)
`(progn ,@expanded-forms)))
(provide 'core-use-package-ext)