summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-20 21:44:45 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-20 21:44:45 +0100
commit81226e03102dd00b7cdce0e00775e1e30462f9a6 (patch)
treedace60a552668bfd17bde5c5fbccbb4ae66024a8 /src
parent3cc9f7440d857ff8360c15bb11e4e6229463920e (diff)
downloadvim-81226e03102dd00b7cdce0e00775e1e30462f9a6.zip
patch 8.0.1528: dead code found
Problem: Dead code found. Solution: Remove the useless lines. (CodeAi, closes #2656)
Diffstat (limited to 'src')
-rw-r--r--src/screen.c3
-rw-r--r--src/spell.c1
-rw-r--r--src/syntax.c1
-rw-r--r--src/version.c2
-rw-r--r--src/window.c2
5 files changed, 3 insertions, 6 deletions
diff --git a/src/screen.c b/src/screen.c
index 97f69882b..8b7a519c0 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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
@@ -10291,7 +10291,6 @@ showmode(void)
msg_puts_attr(edit_submode_extra, sub_attr);
}
}
- length = 0;
}
else
#endif
diff --git a/src/spell.c b/src/spell.c
index 3c53d1d25..0e08e9e7b 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -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
diff --git a/src/syntax.c b/src/syntax.c
index e85dca76d..fcffdbf8a 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -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));
diff --git a/src/version.c b/src/version.c
index 5bd6ead3a..52b447e3a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1528,
+/**/
1527,
/**/
1526,
diff --git a/src/window.c b/src/window.c
index 38e1591cc..40a4607d0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -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) */
@@ -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) */