From: Mattias EngdegÄrd Date: Tue, 27 Dec 2022 10:18:02 +0000 (+0100) Subject: ; * test/src/treesit-tests.el: remove dead store (bytecomp warning) X-Git-Tag: emacs-29.0.90~969 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2347f37f677cc4c3acbc84c424c08dff369e9047;p=emacs.git ; * test/src/treesit-tests.el: remove dead store (bytecomp warning) --- diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el index 3770a4d01e5..b0fbed4b06c 100644 --- a/test/src/treesit-tests.el +++ b/test/src/treesit-tests.el @@ -252,9 +252,7 @@ BODY is the test body." (setq parser (treesit-parser-create 'json)) (setq root (treesit-parser-root-node parser)) - (setq array (treesit-node-child root 0)) - ;; First bracket. - (setq cursor (treesit-node-child array 0))) + (setq array (treesit-node-child root 0))) ,@body))) (ert-deftest treesit-search-forward ()