branch: elpa/typescript-mode
commit b7074c5dea3da995d9f72e1bce0088003f27728e
Author: Wilfred Hughes <[email protected]>
Commit: Wilfred Hughes <[email protected]>
Remove redundant code
define-derived-mode already ensures that major-mode and mode-name are
set correctly.
---
typescript-mode.el | 3 ---
1 file changed, 3 deletions(-)
diff --git a/typescript-mode.el b/typescript-mode.el
index 6d129e9a3b..1b288f1eb2 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -2686,9 +2686,6 @@ Key bindings:
;; Frameworks
(typescript--update-quick-match-re)
- (setq major-mode 'typescript-mode)
- (setq mode-name "typescript")
-
;; for filling, pretend we're cc-mode
(setq c-comment-prefix-regexp "//+\\|\\**"
c-paragraph-start "$"