diff options
| author | Stefan Monnier | 2017-07-04 22:00:35 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2017-07-04 22:00:35 -0400 |
| commit | 2fb15dcbbbb8e0c7d90410a1bc94dbef0a83c15b (patch) | |
| tree | a0315f6049d0c25e3d323be324c22e353140c200 | |
| parent | b78cf15118d665d2671101f8e78e3ac4efd92562 (diff) | |
| download | emacs-2fb15dcbbbb8e0c7d90410a1bc94dbef0a83c15b.tar.gz emacs-2fb15dcbbbb8e0c7d90410a1bc94dbef0a83c15b.zip | |
* lisp/progmodes/cc-cmds.el: Remove unused vars
(c-syntactic-context): Declare as dynbound.
(c-beginning-of-defun, c-end-of-defun): Remove unused var `start'.
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index de2543951b9..121ba24f090 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -51,6 +51,8 @@ | |||
| 51 | ;; Indentation / Display syntax functions | 51 | ;; Indentation / Display syntax functions |
| 52 | (defvar c-fix-backslashes t) | 52 | (defvar c-fix-backslashes t) |
| 53 | 53 | ||
| 54 | (defvar c-syntactic-context) | ||
| 55 | |||
| 54 | (defun c-indent-line (&optional syntax quiet ignore-point-pos) | 56 | (defun c-indent-line (&optional syntax quiet ignore-point-pos) |
| 55 | "Indent the current line according to the syntactic context, | 57 | "Indent the current line according to the syntactic context, |
| 56 | if `c-syntactic-indentation' is non-nil. Optional SYNTAX is the | 58 | if `c-syntactic-indentation' is non-nil. Optional SYNTAX is the |
| @@ -1635,7 +1637,6 @@ defun." | |||
| 1635 | (c-save-buffer-state | 1637 | (c-save-buffer-state |
| 1636 | (beginning-of-defun-function | 1638 | (beginning-of-defun-function |
| 1637 | end-of-defun-function | 1639 | end-of-defun-function |
| 1638 | (start (point)) | ||
| 1639 | (paren-state (c-parse-state)) | 1640 | (paren-state (c-parse-state)) |
| 1640 | (orig-point-min (point-min)) (orig-point-max (point-max)) | 1641 | (orig-point-min (point-min)) (orig-point-max (point-max)) |
| 1641 | lim ; Position of { which has been widened to. | 1642 | lim ; Position of { which has been widened to. |
| @@ -1759,7 +1760,6 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'." | |||
| 1759 | (c-save-buffer-state | 1760 | (c-save-buffer-state |
| 1760 | (beginning-of-defun-function | 1761 | (beginning-of-defun-function |
| 1761 | end-of-defun-function | 1762 | end-of-defun-function |
| 1762 | (start (point)) | ||
| 1763 | (paren-state (c-parse-state)) | 1763 | (paren-state (c-parse-state)) |
| 1764 | (orig-point-min (point-min)) (orig-point-max (point-max)) | 1764 | (orig-point-min (point-min)) (orig-point-max (point-max)) |
| 1765 | lim | 1765 | lim |