Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.0.1528: dead code found
Problem:    Dead code found.
Solution:   Remove the useless lines. (CodeAi, closes #2656)
  • Loading branch information
brammool committed Feb 20, 2018
1 parent 3cc9f74 commit 81226e0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/screen.c
Expand Up @@ -10182,7 +10182,7 @@ screen_del_lines(
}

/*
* show the current mode and ruler
* Show the current mode and ruler.
*
* If clear_cmdline is TRUE, clear the rest of the cmdline.
* If clear_cmdline is FALSE there may be a message there that needs to be
Expand Down Expand Up @@ -10291,7 +10291,6 @@ showmode(void)
msg_puts_attr(edit_submode_extra, sub_attr);
}
}
length = 0;
}
else
#endif
Expand Down
1 change: 0 additions & 1 deletion src/spell.c
Expand Up @@ -2404,7 +2404,6 @@ did_set_spelllang(win_T *wp)
{
vim_strncpy(region_cp, p + 1, 2);
mch_memmove(p, p + 3, len - (p - lang) - 2);
len -= 3;
region = region_cp;
}
else
Expand Down
1 change: 0 additions & 1 deletion src/syntax.c
Expand Up @@ -6814,7 +6814,6 @@ syntime_report(void)
MSG_PUTS("\n");
for (idx = 0; idx < ga.ga_len && !got_int; ++idx)
{
spp = &(SYN_ITEMS(curwin->w_s)[idx]);
p = ((time_entry_T *)ga.ga_data) + idx;

MSG_PUTS(profile_msg(&p->total));
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -771,6 +771,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1528,
/**/
1527,
/**/
Expand Down
2 changes: 0 additions & 2 deletions src/window.c
Expand Up @@ -1899,7 +1899,6 @@ win_equal_rec(

for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
{
n = m = 0;
wincount = 1;
if (fr->fr_next == NULL)
/* last frame gets all that remains (avoid roundoff error) */
Expand Down Expand Up @@ -2041,7 +2040,6 @@ win_equal_rec(

for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
{
n = m = 0;
wincount = 1;
if (fr->fr_next == NULL)
/* last frame gets all that remains (avoid roundoff error) */
Expand Down

0 comments on commit 81226e0

Please sign in to comment.