mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.0.1528: dead code found
Problem: Dead code found. Solution: Remove the useless lines. (CodeAi, closes #2656)
This commit is contained in:
@@ -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 TRUE, clear the rest of the cmdline.
|
||||||
* If clear_cmdline is FALSE there may be a message there that needs to be
|
* If clear_cmdline is FALSE there may be a message there that needs to be
|
||||||
@@ -10291,7 +10291,6 @@ showmode(void)
|
|||||||
msg_puts_attr(edit_submode_extra, sub_attr);
|
msg_puts_attr(edit_submode_extra, sub_attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
length = 0;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@@ -2404,7 +2404,6 @@ did_set_spelllang(win_T *wp)
|
|||||||
{
|
{
|
||||||
vim_strncpy(region_cp, p + 1, 2);
|
vim_strncpy(region_cp, p + 1, 2);
|
||||||
mch_memmove(p, p + 3, len - (p - lang) - 2);
|
mch_memmove(p, p + 3, len - (p - lang) - 2);
|
||||||
len -= 3;
|
|
||||||
region = region_cp;
|
region = region_cp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -6814,7 +6814,6 @@ syntime_report(void)
|
|||||||
MSG_PUTS("\n");
|
MSG_PUTS("\n");
|
||||||
for (idx = 0; idx < ga.ga_len && !got_int; ++idx)
|
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;
|
p = ((time_entry_T *)ga.ga_data) + idx;
|
||||||
|
|
||||||
MSG_PUTS(profile_msg(&p->total));
|
MSG_PUTS(profile_msg(&p->total));
|
||||||
|
@@ -771,6 +771,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 */
|
||||||
|
/**/
|
||||||
|
1528,
|
||||||
/**/
|
/**/
|
||||||
1527,
|
1527,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -1899,7 +1899,6 @@ win_equal_rec(
|
|||||||
|
|
||||||
for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
|
for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
|
||||||
{
|
{
|
||||||
n = m = 0;
|
|
||||||
wincount = 1;
|
wincount = 1;
|
||||||
if (fr->fr_next == NULL)
|
if (fr->fr_next == NULL)
|
||||||
/* last frame gets all that remains (avoid roundoff error) */
|
/* last frame gets all that remains (avoid roundoff error) */
|
||||||
@@ -2041,7 +2040,6 @@ win_equal_rec(
|
|||||||
|
|
||||||
for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
|
for (fr = topfr->fr_child; fr != NULL; fr = fr->fr_next)
|
||||||
{
|
{
|
||||||
n = m = 0;
|
|
||||||
wincount = 1;
|
wincount = 1;
|
||||||
if (fr->fr_next == NULL)
|
if (fr->fr_next == NULL)
|
||||||
/* last frame gets all that remains (avoid roundoff error) */
|
/* last frame gets all that remains (avoid roundoff error) */
|
||||||
|
Reference in New Issue
Block a user