]> granicus.if.org Git - vim/commitdiff
patch 8.2.3490: superfluous return statements v8.2.3490
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Sat, 9 Oct 2021 14:39:25 +0000 (15:39 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 9 Oct 2021 14:39:25 +0000 (15:39 +0100)
Problem:    Superfluous return statements.
Solution:   Remove superfluous return statements from void functions.
            (closes #8977)

src/buffer.c
src/getchar.c
src/memline.c
src/move.c
src/option.c
src/version.c

index bcbdf839dd8ba5cca9050e9801dc088fa7811a53..56c1bf2f404dce8ae49702fbe02df0b00f30a5f2 100644 (file)
@@ -3029,8 +3029,6 @@ buflist_setfpos(
     wip->wi_prev = NULL;
     if (wip->wi_next)
        wip->wi_next->wi_prev = wip;
-
-    return;
 }
 
 #ifdef FEAT_DIFF
index 93e3b879ed7b19a9ae518bf6ad8b48809b990c3b..f2f38853b72b501781f9491f5013d7037eb4727c 100644 (file)
@@ -243,7 +243,6 @@ add_buff(
        buf->bh_curr->b_next = p;
        buf->bh_curr = p;
     }
-    return;
 }
 
 /*
index b43f10e12e68940cdfd8eeb32032f49c5e505d00..6ea860d4fef002dc0a7e5e799a32219ede7d6914 100644 (file)
@@ -1786,7 +1786,6 @@ theend:
        apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf);
        apply_autocmds(EVENT_BUFWINENTER, NULL, curbuf->b_fname, FALSE, curbuf);
     }
-    return;
 }
 
 /*
@@ -3930,7 +3929,6 @@ ml_clearmarked(void)
     }
 
     lowest_marked = 0;
-    return;
 }
 
 /*
index 9e3a714fd050c097fd9aaf8282be2cf2fa1ed881..8fe00bb678d39550918afdb2065c6c32892fb1e8 100644 (file)
@@ -2682,7 +2682,6 @@ get_scroll_overlap(lineoff_T *lp, int dir)
        *lp = loff1;    // 1 line overlap
     else
        *lp = loff2;    // 2 lines overlap
-    return;
 }
 
 /*
index 124f76bbf7509fbf7fb4c80c1fabf85cdc7df39a..fe5ff4367c3600fc046477944811a594797cf4d2 100644 (file)
@@ -6391,8 +6391,6 @@ set_context_in_set_cmd(
        }
 #endif
     }
-
-    return;
 }
 
     int
index 43f87aabec709e07c2f024d2ffcd02aa32f18440..074c89656e49c78947c5d88371eb249923cfb8f0 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3490,
 /**/
     3489,
 /**/