mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.3490: superfluous return statements #15978
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes vim/vim#8977)
3826c0513b
This commit is contained in:
parent
0fc8597f01
commit
5940a3415b
@ -2553,8 +2553,6 @@ void buflist_setfpos(buf_T *const buf, win_T *const win, linenr_T lnum, colnr_T
|
||||
if (wip->wi_next) {
|
||||
wip->wi_next->wi_prev = wip;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
@ -293,7 +293,6 @@ static void add_buff(buffheader_T *const buf, const char *const s, ptrdiff_t sle
|
||||
buf->bh_curr->b_next = p;
|
||||
buf->bh_curr = p;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1272,7 +1272,6 @@ theend:
|
||||
apply_autocmds(EVENT_BUFREADPOST, NULL, curbuf->b_fname, FALSE, curbuf);
|
||||
apply_autocmds(EVENT_BUFWINENTER, NULL, curbuf->b_fname, FALSE, curbuf);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/// Find the names of swap files in current directory and the directory given
|
||||
@ -2798,7 +2797,6 @@ void ml_clearmarked(void)
|
||||
}
|
||||
|
||||
lowest_marked = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
size_t ml_flush_deleted_bytes(buf_T *buf, size_t *codepoints, size_t *codeunits)
|
||||
|
@ -2104,7 +2104,6 @@ static void get_scroll_overlap(lineoff_T *lp, int dir)
|
||||
} else {
|
||||
*lp = loff2; // 2 lines overlap
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Scroll 'scroll' lines up or down.
|
||||
|
@ -6509,8 +6509,6 @@ void set_context_in_set_cmd(expand_T *xp, char_u *arg, int opt_flags)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int ExpandSettings(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file)
|
||||
|
Loading…
Reference in New Issue
Block a user