Skip to content

Commit 96adfbf

Browse files
monnierzonuexe
authored andcommitted
Remove unnecessary boundp guards from remove-hook call
1 parent 41f1266 commit 96adfbf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lisp/php-mode.el

+1-2
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,7 @@ After setting the stylevars run hook `php-mode-STYLENAME-hook'."
11321132
"Reset PHP-irrelevant variables set by Cc Mode initialization."
11331133
(setq-local c-mode-hook nil)
11341134
(setq-local java-mode-hook nil)
1135-
(when (eval-when-compile (boundp 'flymake-diagnostic-functions))
1136-
(remove-hook 'flymake-diagnostic-functions 'flymake-cc t))
1135+
(remove-hook 'flymake-diagnostic-functions 'flymake-cc t)
11371136
t)
11381137

11391138
(defvar php-mode-syntax-table

0 commit comments

Comments
 (0)