mbyte: remove dead code

This commit is contained in:
Björn Linse
2017-03-22 17:16:49 +01:00
parent a1732b46ab
commit 1d8356a807
3 changed files with 41 additions and 247 deletions

View File

@@ -2417,32 +2417,20 @@ static int cls(void)
int c;
c = gchar_cursor();
if (p_altkeymap && c == F_BLANK)
if (p_altkeymap && c == F_BLANK) {
return 0;
if (c == ' ' || c == '\t' || c == NUL)
return 0;
if (enc_dbcs != 0 && c > 0xFF) {
/* If cls_bigword, report multi-byte chars as class 1. */
if (enc_dbcs == DBCS_KOR && cls_bigword)
return 1;
/* process code leading/trailing bytes */
return dbcs_class(((unsigned)c >> 8), (c & 0xFF));
}
if (enc_utf8) {
c = utf_class(c);
if (c != 0 && cls_bigword)
return 1;
return c;
if (c == ' ' || c == '\t' || c == NUL) {
return 0;
}
/* If cls_bigword is TRUE, report all non-blanks as class 1. */
if (cls_bigword)
c = utf_class(c);
// If cls_bigword is TRUE, report all non-blanks as class 1.
if (c != 0 && cls_bigword) {
return 1;
if (vim_iswordc(c))
return 2;
return 1;
}
return c;
}
/*