patch 8.2.3879: getreg() and getregtype() contain dead code

Problem:    getreg() and getregtype() contain dead code.
Solution:   Remove the needless check. (closes #9392)  Also refactor to put
            common code in a shared function.
This commit is contained in:
Bram Moolenaar
2021-12-24 10:48:30 +00:00
parent 310091d20f
commit 51e64b2789
2 changed files with 49 additions and 48 deletions

View File

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