0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.3490: superfluous return statements

Problem:    Superfluous return statements.
Solution:   Remove superfluous return statements from void functions.
            (closes #8977)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2021-10-09 15:39:25 +01:00
committed by Bram Moolenaar
parent 35a319b77f
commit 3826c0513b
6 changed files with 2 additions and 8 deletions

View File

@@ -3029,8 +3029,6 @@ buflist_setfpos(
wip->wi_prev = NULL; wip->wi_prev = NULL;
if (wip->wi_next) if (wip->wi_next)
wip->wi_next->wi_prev = wip; wip->wi_next->wi_prev = wip;
return;
} }
#ifdef FEAT_DIFF #ifdef FEAT_DIFF

View File

@@ -243,7 +243,6 @@ add_buff(
buf->bh_curr->b_next = p; buf->bh_curr->b_next = p;
buf->bh_curr = p; buf->bh_curr = p;
} }
return;
} }
/* /*

View File

@@ -1786,7 +1786,6 @@ theend:
apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf); apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf);
apply_autocmds(EVENT_BUFWINENTER, 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; lowest_marked = 0;
return;
} }
/* /*

View File

@@ -2682,7 +2682,6 @@ get_scroll_overlap(lineoff_T *lp, int dir)
*lp = loff1; // 1 line overlap *lp = loff1; // 1 line overlap
else else
*lp = loff2; // 2 lines overlap *lp = loff2; // 2 lines overlap
return;
} }
/* /*

View File

@@ -6391,8 +6391,6 @@ set_context_in_set_cmd(
} }
#endif #endif
} }
return;
} }
int int

View File

@@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3490,
/**/ /**/
3489, 3489,
/**/ /**/