branch: externals/matlab-mode commit b4cdd1c74edd6068ef40cb16382e16a2765e5800 Author: John Ciolfi <john.ciolfi...@gmail.com> Commit: John Ciolfi <john.ciolfi...@gmail.com>
matlab-ts-mode: removed unused matlab-ts-mode--do-functions-have-end --- matlab-ts-mode.el | 8 -------- 1 file changed, 8 deletions(-) diff --git a/matlab-ts-mode.el b/matlab-ts-mode.el index 22c4d93dfe..97917420d1 100644 --- a/matlab-ts-mode.el +++ b/matlab-ts-mode.el @@ -1054,14 +1054,6 @@ For optional _NODE, PARENT, and _BOL see `treesit-simple-indent-rules'." "Set and return offset for parent of PARENT (grand-parent of NODE) at BOL." (matlab-ts-mode--set-function-indent-level node (treesit-node-parent parent) bol)) -;; TODO - keep or rm matlab-ts-mode--do-functions-have-end (it's not currently used) -(defun matlab-ts-mode--do-functions-have-end () - "Are functions terminated with an end keyword?" - ;; matlab-ts-mode--function-indent-level is setup when we enter matlab-ts-mode - (cl-assert (not (eq matlab-ts-mode--function-indent-level 'unset))) - ;; A 0 indicates functions are not terminated by an end keyword - (not (= matlab-ts-mode--function-indent-level 0))) - (defvar matlab-ts--indent-debug-rule '((lambda (node parent bol) (message "-->N:%S P:%S BOL:%S GP:%S NPS:%S"