]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark some unused defaliases in semantic/fw.el obsolete
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 16:46:27 +0000 (18:46 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 16:46:27 +0000 (18:46 +0200)
* lisp/cedet/semantic/fw.el (semantic-run-mode-hooks)
(semantic-subst-char-in-string): Make two unused defaliases obsolete.

lisp/cedet/semantic/fw.el

index 7a1273d6534e8a1f9d6013dd4d9f29f0d70c94d2..e347c99f1916fe51e1955eb171b60e9f73250306 100644 (file)
 
 ;; Since Emacs 22 major mode functions should use `run-mode-hooks' to
 ;; run major mode hooks.
-(defalias 'semantic-run-mode-hooks
-  (if (fboundp 'run-mode-hooks)
-      'run-mode-hooks
-    'run-hooks))
+(define-obsolete-function-alias 'semantic-run-mode-hooks 'run-mode-hooks "28.1")
 
-  ;; Fancy compat usage now handled in cedet-compat
-(defalias 'semantic-subst-char-in-string 'subst-char-in-string)
+;; Fancy compat usage now handled in cedet-compat
+(define-obsolete-function-alias 'semantic-subst-char-in-string
+  'subst-char-in-string "28.1")
 
 (defun semantic-delete-overlay-maybe (overlay)
   "Delete OVERLAY if it is a semantic token overlay."