emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 399393a 057/495: remove dead code


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 399393a 057/495: remove dead code
Date: Sat, 7 Aug 2021 09:04:43 -0400 (EDT)

branch: elpa/go-mode
commit 399393a71da3858315c3f089736c3de92fa7f634
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    remove dead code
---
 go-mode.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index de34f3e..77ce50b 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -157,7 +157,7 @@ built-ins, functions, and some types.")
 
 (defun go-indentation-at-point (point)
   (save-excursion
-    (let (start-nesting line-begin (outindent 0))
+    (let (start-nesting (outindent 0))
       (goto-char point)
       (back-to-indentation)
       (if (go-in-string-p)
@@ -179,7 +179,6 @@ built-ins, functions, and some types.")
                   (current-indentation)
                 (+ (current-indentation) tab-width))
             (go--backward-irrelevant)
-            (setq line-begin (line-beginning-position))
             (if (= (go-paren-level) 0)
                 0
               (while (and (not (bobp))
@@ -187,9 +186,7 @@ built-ins, functions, and some types.")
                 (if (= 0 (skip-chars-backward "^[]{}()"))
                     (backward-char))
                 (if (go-in-string-p)
-                    (progn
-                      (go--backward-irrelevant)
-                      (setq line-begin (line-beginning-position)))))
+                    (go--backward-irrelevant)))
               (if (< (go-paren-level) start-nesting)
                   (if (go-previous-line-has-opening-parenthesis-p)
                       (current-indentation)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]