]> git.eshelyaron.com Git - sweep.git/commitdiff
; Remove two unused local variables
authorEshel Yaron <me@eshelyaron.com>
Sun, 3 Dec 2023 09:54:11 +0000 (10:54 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 3 Dec 2023 09:56:31 +0000 (10:56 +0100)
* sweeprolog.el (sweeprolog--diagnostics-changes-beg)
(sweeprolog--diagnostics-changes-end): Unused, remove.
* sweeprolog.el (sweeprolog-diagnostic-function): Adapt.

sweeprolog.el

index 93284f24ee2aae8d51b68316ef06474d56545edb..6245dea877594ffd31138b4142c606ecfc0f5c59 100644 (file)
@@ -624,10 +624,6 @@ By default, this is t on systems where Emacs can use a pty."
 
 (defvar-local sweeprolog--diagnostics-report-fn nil)
 
-(defvar-local sweeprolog--diagnostics-changes-beg nil)
-
-(defvar-local sweeprolog--diagnostics-changes-end nil)
-
 (defvar-local sweeprolog--timer nil)
 
 (defvar-local sweeprolog--analyze-buffer-duration 0.2)
@@ -3388,11 +3384,9 @@ variable at point, if any."
 
 ;;;; Flymake
 
-(defun sweeprolog-diagnostic-function (report-fn &rest rest)
+(defun sweeprolog-diagnostic-function (report-fn &rest _)
   (setq sweeprolog--diagnostics nil
-        sweeprolog--diagnostics-report-fn report-fn
-        sweeprolog--diagnostics-changes-beg (plist-get rest :changes-start)
-        sweeprolog--diagnostics-changes-end (plist-get rest :changes-end)))
+        sweeprolog--diagnostics-report-fn report-fn))
 
 (defun sweeprolog-show-diagnostics (&optional proj)
   "Show diagnostics for the current project, or buffer if PROJ is nil.