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

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

[nongnu] elpa/go-mode 08aa90d52f 3/3: Remove go--fill-prefix


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 08aa90d52f 3/3: Remove go--fill-prefix
Date: Tue, 26 Jul 2022 21:58:30 -0400 (EDT)

branch: elpa/go-mode
commit 08aa90d52f0e7d2ad02f961b554e13329672d7cb
Author: Javier Olaechea <pirata@gmail.com>
Commit: Dominik Honnef <dominik@honnef.co>

    Remove go--fill-prefix
    
    The function is not called from anywhere and does not work as it calls
    function that were previously deleted. Both go--empty-line-p and
    go--boring-comment-p were removed in
    b212a73c21a8b806f9764004397c1d03eb0b2e10.
    
    Closes: gh-403 [via git-merge-pr]
---
 go-mode.el | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 85acc2cb73..f31e4bffdd 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -733,31 +733,6 @@ case keyword. It returns nil for the case line itself."
   "Return non-nil if point is inside a type switch statement."
   (go--in-paren-with-prefix-p ?{ ".(type)"))
 
-(defun go--fill-prefix ()
-  "Return fill prefix for following comment paragraph."
-  (save-excursion
-    (beginning-of-line)
-
-    ;; Skip over empty lines and empty comment openers/closers.
-    (while (and
-            (or (go--empty-line-p) (go--boring-comment-p))
-            (zerop (forward-line 1))))
-
-    ;; If we are in a block comment, set prefix based on first line
-    ;; with content.
-    (if (go-in-comment-p)
-        (progn
-          (looking-at "[[:space:]]*")
-          (match-string-no-properties 0))
-
-      ;; Else if we are looking at the start of an interesting comment, our
-      ;; prefix is the comment opener and any space following.
-      (if (looking-at (concat go--comment-start-regexp "[[:space:]]*"))
-          ;; Replace "/*" opener with spaces so following lines don't
-          ;; get "/*" prefix.
-          (replace-regexp-in-string "/\\*" "  "
-                                    (match-string-no-properties 0))))))
-
 (defun go--open-paren-position ()
   "Return non-nil if point is between '(' and ')'.
 



reply via email to

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