summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-cmds.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2007-04-08 11:18:55 +0000
committerAlan Mackenzie <acm@muc.de>2007-04-08 11:18:55 +0000
commitde5c0bc1bc15715ec50abfe562912ca7a2c00b75 (patch)
treedcdbd50d9ad038f3927f3fd2094008bdf04d5887 /lisp/progmodes/cc-cmds.el
parent8300c023f1a1df94c8255f45b15b16bf9cfd5b99 (diff)
downloademacs-de5c0bc1bc15715ec50abfe562912ca7a2c00b75.tar.gz
(c-end-of-defun): Tidy up, to eliminate byte-compiler warning "value
unused".
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r--lisp/progmodes/cc-cmds.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index debdfe44cb4..7b28851b3bb 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -1630,10 +1630,8 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'."
(setq arg (1+ arg)))
(if (< arg 0)
(setq arg (c-backward-to-nth-BOF-{ (- arg) where)))
- (when (and (= arg 0)
- (c-syntactic-skip-backward "^}")
- (eq (char-before) ?\}))
- t))
+ (if (= arg 0)
+ (c-syntactic-skip-backward "^}")))
;; Move forward to the } of a function
(if (> arg 0)