From e980d8a934393c4da5ff0d5ece6f3e158fa98306 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 8 Dec 2010 13:11:21 +0100 Subject: updated for version 7.3.076 Problem: Clang warnings for dead code. Solution: Remove it. (Carlo Teubner) --- src/spell.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/spell.c') 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)); - } } } } -- cgit v1.2.1