Skip to content

Commit

Permalink
Remove unnecessary boundp guards from remove-hook call
Browse files Browse the repository at this point in the history
  • Loading branch information
monnier authored and zonuexe committed Apr 10, 2023
1 parent 0676394 commit 9e952d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lisp/php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e952d4

Please sign in to comment.