branch: elpa/swift-mode
commit d35275b90de05f62afda02f7a57c48649bfd147a
Author: taku0 <[email protected]>
Commit: taku0 <[email protected]>
Remove unused variables
---
swift-mode-beginning-of-defun.el | 1 -
swift-mode-font-lock.el | 5 +++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/swift-mode-beginning-of-defun.el b/swift-mode-beginning-of-defun.el
index 6fcb3b8..099cd08 100644
--- a/swift-mode-beginning-of-defun.el
+++ b/swift-mode-beginning-of-defun.el
@@ -579,7 +579,6 @@ Both functions return t if succeeded, return nil otherwise."
(point-was-after-mark
(and (mark t)
(< (mark t) (point))))
- new-region-and-direction
new-region
new-direction
last-successful-region)
diff --git a/swift-mode-font-lock.el b/swift-mode-font-lock.el
index 5f0be74..621425e 100644
--- a/swift-mode-font-lock.el
+++ b/swift-mode-font-lock.el
@@ -228,8 +228,9 @@ This function does not search beyond LIMIT."
(goto-char pos)
(forward-comment (- (point)))
(skip-syntax-backward "w_")
- (looking-at
- "\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>"))
+ (and (< (point) limit)
+ (looking-at
+ "\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>")))
(defun swift-mode:property-access-pos-p (pos limit)
"Return t if POS is just before the property name of a member expression.