Skip to content

Commit d35275b

Browse files
committed
Remove unused variables
1 parent 55ce4e5 commit d35275b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

swift-mode-beginning-of-defun.el

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ Both functions return t if succeeded, return nil otherwise."
579579
(point-was-after-mark
580580
(and (mark t)
581581
(< (mark t) (point))))
582-
new-region-and-direction
583582
new-region
584583
new-direction
585584
last-successful-region)

swift-mode-font-lock.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ This function does not search beyond LIMIT."
228228
(goto-char pos)
229229
(forward-comment (- (point)))
230230
(skip-syntax-backward "w_")
231-
(looking-at
232-
"\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>"))
231+
(and (< (point) limit)
232+
(looking-at
233+
"\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>")))
233234

234235
(defun swift-mode:property-access-pos-p (pos limit)
235236
"Return t if POS is just before the property name of a member expression.

0 commit comments

Comments
 (0)