@@ -292,13 +292,6 @@ In that case set to `NIL'."
292
292
:tag " PHP Mode Enable Backup Style Variables"
293
293
:type 'boolean )
294
294
295
- (define-obsolete-variable-alias 'php-mode-disable-parent-mode-hooks 'php-mode-disable-c-mode-hook " 1.21.0" )
296
- (defcustom php-mode-disable-c-mode-hook t
297
- " When set to `T' , do not run hooks of parent modes (`java-mode' , `c-mode' )."
298
- :tag " PHP Mode Disable C Mode Hook"
299
- :type 'boolean )
300
- (make-obsolete-variable 'php-mode-disable-c-mode-hook nil " 1.24.2" )
301
-
302
295
(defcustom php-mode-enable-project-local-variable t
303
296
" When set to `T' , apply project local variable to buffer local variable."
304
297
:tag " PHP Mode Enable Project Local Variable"
@@ -1132,13 +1125,6 @@ After setting the stylevars run hook `php-mode-STYLENAME-hook'."
1132
1125
(php-project-apply-local-variables)
1133
1126
(remove-hook 'hack-local-variables-hook #'php-mode-set-local-variable-delay ))
1134
1127
1135
- (defun php-mode-neutralize-cc-mode-effect ()
1136
- " Reset PHP-irrelevant variables set by Cc Mode initialization."
1137
- (setq-local c-mode-hook nil )
1138
- (setq-local java-mode-hook nil )
1139
- (remove-hook 'flymake-diagnostic-functions 'flymake-cc t )
1140
- t )
1141
-
1142
1128
(defvar php-mode-syntax-table
1143
1129
(let ((table (make-syntax-table )))
1144
1130
(c-populate-syntax-table table)
@@ -1162,12 +1148,6 @@ After setting the stylevars run hook `php-mode-STYLENAME-hook'."
1162
1148
(unless (string= php-mode-cc-version c-version)
1163
1149
(php-mode-debug-reinstall nil ))
1164
1150
1165
- (if php-mode-disable-c-mode-hook
1166
- (php-mode-neutralize-cc-mode-effect)
1167
- (display-warning 'php-mode
1168
- " `php-mode-disable-c-mode-hook' will be removed. Do not depends on this variable."
1169
- :warning ))
1170
-
1171
1151
(c-initialize-cc-mode t )
1172
1152
(setq abbrev-mode t )
1173
1153
0 commit comments