branch: externals/phpinspect
commit 93f5cb1f4554bf6770a9192be4ec6284d55eae00
Author: Hugo Thunnissen <[email protected]>
Commit: Hugo Thunnissen <[email protected]>
Remove unused lexical variables and fix invalid inline-function
---
phpinspect-imports.el | 2 --
phpinspect-parser.el | 3 ++-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/phpinspect-imports.el b/phpinspect-imports.el
index de679c4362..b1de19a671 100644
--- a/phpinspect-imports.el
+++ b/phpinspect-imports.el
@@ -243,12 +243,10 @@ that there are import (\"use\") statements for them."
(tree (phpinspect-buffer-reparse-if-not-fresh buffer))
(index (phpinspect--index-tokens
tree nil (phpinspect-buffer-location-resolver buffer)))
- (classes (alist-get 'classes index))
(namespaces (alist-get 'namespaces index))
(imports (alist-get 'imports index))
(project (phpinspect-buffer-project buffer))
(used-types (alist-get 'used-types index))
- class-tokens
namespace-tokens)
;; First collect tokens in the buffer via which the namespace tokens
can
diff --git a/phpinspect-parser.el b/phpinspect-parser.el
index 8b4f79d50f..3b4eb0718b 100644
--- a/phpinspect-parser.el
+++ b/phpinspect-parser.el
@@ -602,7 +602,8 @@ nature like argument lists"
(list :object-attrib name)))))
(define-inline phpinspect--namespace-should-end-at-block-p (tokens)
- (>= 4 (length tokens)))
+ (inline-quote
+ (>= 4 (length ,tokens))))
(phpinspect-defparser namespace
:tree-keyword "namespace"