]> git.eshelyaron.com Git - emacs.git/commitdiff
; Remove unused variable treesit-imenu-function
authorStefan Kangas <stefankangas@gmail.com>
Fri, 25 Nov 2022 07:57:57 +0000 (08:57 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 25 Nov 2022 07:58:57 +0000 (08:58 +0100)
* lisp/treesit.el (treesit-imenu-function): Remove unused
variable.  (Bug#59475)

lisp/treesit.el

index b8372d4f51f941ac813c3a5a69f8b0029ab42fe6..8a8f6f02c79311dab9196f29af938e9373c11fce 100644 (file)
@@ -1609,14 +1609,6 @@ ARG is the same as in `beginning-of-defun'."
          (top (treesit--defun-maybe-top-level node)))
     (goto-char (treesit-node-end top))))
 
-;;; Imenu
-
-(defvar-local treesit-imenu-function nil
-  "Tree-sitter version of `imenu-create-index-function'.
-
-Set this variable to a function and `treesit-mode' will bind it
-to `imenu-create-index-function'.")
-
 ;;; Activating tree-sitter
 
 (defun treesit-ready-p (language &optional quiet)