emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phpinspect 52626b7091 18/30: Remove unused defun


From: ELPA Syncer
Subject: [elpa] externals/phpinspect 52626b7091 18/30: Remove unused defun
Date: Sat, 31 Aug 2024 09:58:53 -0400 (EDT)

branch: externals/phpinspect
commit 52626b709114a80000f051aa11cc80b762eeca57
Author: Hugo Thunnissen <devel@hugot.nl>
Commit: Hugo Thunnissen <devel@hugot.nl>

    Remove unused defun
---
 phpinspect-buffer.el | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/phpinspect-buffer.el b/phpinspect-buffer.el
index 115cf687a7..dddb76b708 100644
--- a/phpinspect-buffer.el
+++ b/phpinspect-buffer.el
@@ -200,30 +200,6 @@ linked with."
      (phpinspect-class-block (phpinspect-meta-token class-token))
      namespace-name)))
 
-(defun phpinspect-buffer-apply-use-trait-config (buffer class-token uses)
-  (pcase-let* ((`(,imports ,namespace-name)
-                (phpinspect-get-token-index-context
-                 (phpinspect-buffer-namespaces buffer)
-                 (phpinspect-buffer-imports buffer)
-                 class-token))
-               (type-resolver (phpinspect--make-type-resolver
-                               imports
-                               (phpinspect-class-block (phpinspect-meta-token 
class-token))
-                               namespace-name))
-               (config))
-
-    (dolist (use uses)
-      (setq config
-            (nconc config
-                   (phpinspect--index-trait-use
-                    (phpinspect-meta-token use) type-resolver nil))))
-
-    (when-let ((typedef (phpinspect-buffer-get-index-for-token buffer 
(phpinspect-meta-token class-token))))
-      (let ((new-extensions (seq-uniq (append 
(phpi-typedef-subscribed-to-types typedef)
-                                              (phpi-typedef-set-trait-config 
typedef config))
-                                      #'phpinspect--type=)))
-        (phpi-typedef-update-extensions typedef new-extensions)))))
-
 (cl-defmethod phpinspect-buffer-index-used-traits ((buffer phpinspect-buffer) 
(uses (head phpinspect-splayt)))
   (let ((update t))
     (if (phpinspect-buffer-used-traits buffer)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]