[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables |
Date: |
Sun, 29 Aug 2021 11:34:19 -0400 (EDT) |
branch: elpa/swift-mode
commit d35275b90de05f62afda02f7a57c48649bfd147a
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
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.
- [nongnu] elpa/swift-mode c1f7ec2 321/496: Fix indentation of switch-case body, (continued)
- [nongnu] elpa/swift-mode c1f7ec2 321/496: Fix indentation of switch-case body, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7423f68 324/496: Simplify code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 58f31cc 340/496: Speed-up indentation for colon, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0b1f29d 334/496: Fix indentation of setter, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 812d202 341/496: Fix REPL prompt corruption, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f755479 333/496: Fix anchor highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 56ee9b2 359/496: Add comment style option, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dba539e 394/496: Tweak and clean-up font-lock, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dca378a 400/496: Rename constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c532c1e 402/496: Update documents, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 8a7be9c 424/496: Use remap for keymap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 56e21f8 427/496: Simplify autoloads, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 922dc52 445/496: Fix code format, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b260308 451/496: Declare local variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1268425 455/496: Add links to various formatters, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a84f5c8 460/496: Support multi-parttern catch clauses, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode edec7d5 471/496: Suppress a doccheck warning for old versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b93b97e 466/496: Bump version to 8.1.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0bc8d8d 477/496: Use isAvailable when reading simctl device JSON, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 800efe2 496/496: Fix tags of customization, ELPA Syncer, 2021/08/29