summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-12-08 13:11:21 +0100
committerBram Moolenaar <Bram@vim.org>2010-12-08 13:11:21 +0100
commite980d8a934393c4da5ff0d5ece6f3e158fa98306 (patch)
treea54d79f0937f2d6d4a196615fc5f39f7330f1877 /src/spell.c
parent005c3c27ee586126d7a40c41911cf600b9bbe3d1 (diff)
downloadvim-git-e980d8a934393c4da5ff0d5ece6f3e158fa98306.tar.gz
updated for version 7.3.076v7.3.076
Problem: Clang warnings for dead code. Solution: Remove it. (Carlo Teubner)
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/spell.c b/src/spell.c
index d34cc9459..ca881ec49 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -9839,10 +9839,7 @@ spell_iswordp(p, wp)
{
/* be quick for ASCII */
if (wp->w_s->b_spell_ismw[*p])
- {
s = p + 1; /* skip a mid-word character */
- l = MB_BYTE2LEN(*s);
- }
}
else
{
@@ -9850,10 +9847,7 @@ spell_iswordp(p, wp)
if (c < 256 ? wp->w_s->b_spell_ismw[c]
: (wp->w_s->b_spell_ismw_mb != NULL
&& vim_strchr(wp->w_s->b_spell_ismw_mb, c) != NULL))
- {
s = p + l;
- l = MB_BYTE2LEN(*s);
- }
}
c = mb_ptr2char(s);
@@ -13813,11 +13807,8 @@ add_suggestion(su, gap, goodword, badlenarg, score, altscore, had_bonus,
su->su_sfmaxscore = cleanup_suggestions(gap,
su->su_sfmaxscore, SUG_CLEAN_COUNT(su));
else
- {
- i = su->su_maxscore;
su->su_maxscore = cleanup_suggestions(gap,
su->su_maxscore, SUG_CLEAN_COUNT(su));
- }
}
}
}