changeset 25913:a63676a1da2b v8.2.3490

patch 8.2.3490: superfluous return statements Commit: https://github.com/vim/vim/commit/3826c0513bc9370583be550c864358c7eeb5605a Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sat Oct 9 15:39:25 2021 +0100 patch 8.2.3490: superfluous return statements Problem: Superfluous return statements. Solution: Remove superfluous return statements from void functions. (closes #8977)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Oct 2021 16:45:03 +0200
parents 102e3e860b52
children 225823d65f1b
files src/buffer.c src/getchar.c src/memline.c src/move.c src/option.c src/version.c
diffstat 6 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3029,8 +3029,6 @@ buflist_setfpos(
     wip->wi_prev = NULL;
     if (wip->wi_next)
 	wip->wi_next->wi_prev = wip;
-
-    return;
 }
 
 #ifdef FEAT_DIFF
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -243,7 +243,6 @@ add_buff(
 	buf->bh_curr->b_next = p;
 	buf->bh_curr = p;
     }
-    return;
 }
 
 /*
--- a/src/memline.c
+++ b/src/memline.c
@@ -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;
 }
 
 /*
--- a/src/move.c
+++ b/src/move.c
@@ -2682,7 +2682,6 @@ get_scroll_overlap(lineoff_T *lp, int di
 	*lp = loff1;	// 1 line overlap
     else
 	*lp = loff2;	// 2 lines overlap
-    return;
 }
 
 /*
--- a/src/option.c
+++ b/src/option.c
@@ -6391,8 +6391,6 @@ set_context_in_set_cmd(
 	}
 #endif
     }
-
-    return;
 }
 
     int
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3490,
+/**/
     3489,
 /**/
     3488,