diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-03-22 17:16:49 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-03-22 17:52:42 +0100 |
commit | 1d8356a807e306eb82f2c1a7e2d2802407c7fa6e (patch) | |
tree | 6313ed25c7c2d306e5f2c150e4f3f2615da06ca7 /src/nvim/spell.c | |
parent | a1732b46abe48541f380d6a605fa7529c9a05da1 (diff) | |
download | rneovim-1d8356a807e306eb82f2c1a7e2d2802407c7fa6e.tar.gz rneovim-1d8356a807e306eb82f2c1a7e2d2802407c7fa6e.tar.bz2 rneovim-1d8356a807e306eb82f2c1a7e2d2802407c7fa6e.zip |
mbyte: remove dead code
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 12f982106a..3b891d998f 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2623,7 +2623,7 @@ bool spell_iswordp_nmw(char_u *p, win_T *wp) // Returns true if word class indicates a word character. // Only for characters above 255. // Unicode subscript and superscript are not considered word characters. -// See also dbcs_class() and utf_class() in mbyte.c. +// See also utf_class() in mbyte.c. static bool spell_mb_isword_class(int cl, win_T *wp) { if (wp->w_s->b_cjk) @@ -2646,12 +2646,7 @@ static bool spell_iswordp_w(int *p, win_T *wp) s = p; if (*s > 255) { - if (enc_utf8) - return spell_mb_isword_class(utf_class(*s), wp); - if (enc_dbcs) - return spell_mb_isword_class( - dbcs_class((unsigned)*s >> 8, *s & 0xff), wp); - return false; + return spell_mb_isword_class(utf_class(*s), wp); } return spelltab.st_isw[*s]; } |