From 9e952d47a91454c00b616c47f9d88f0cc1b94a4a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 10 Apr 2023 21:30:58 +0900 Subject: [PATCH] Remove unnecessary boundp guards from remove-hook call --- lisp/php-mode.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/php-mode.el b/lisp/php-mode.el index 1dca9380..cabb11cb 100644 --- a/lisp/php-mode.el +++ b/lisp/php-mode.el @@ -1132,8 +1132,7 @@ After setting the stylevars run hook `php-mode-STYLENAME-hook'." "Reset PHP-irrelevant variables set by Cc Mode initialization." (setq-local c-mode-hook nil) (setq-local java-mode-hook nil) - (when (eval-when-compile (boundp 'flymake-diagnostic-functions)) - (remove-hook 'flymake-diagnostic-functions 'flymake-cc t)) + (remove-hook 'flymake-diagnostic-functions 'flymake-cc t) t) (defvar php-mode-syntax-table