~eshel/sweep

e5a4d53c3e63cc66edc23e6767b04c3424606370 — Eshel Yaron 6 months ago 4b3d298
; Remove two unused local variables

* sweeprolog.el (sweeprolog--diagnostics-changes-beg)
(sweeprolog--diagnostics-changes-end): Unused, remove.
* sweeprolog.el (sweeprolog-diagnostic-function): Adapt.
1 files changed, 2 insertions(+), 8 deletions(-)

M sweeprolog.el
M sweeprolog.el => sweeprolog.el +2 -8
@@ 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.