Fix warnings: charset.c: win_lbr_chartabsize(): Dead assignment: HI.

Problem    : Dead assignment @ 1037.
Diagnostic : Harmless issue.
Rationale  : `tab_corr` is in effect unused after signaled point.
             Previous code using it after that point was removed at
             24ebb018e2.
Resolution : Remove dead assignment. As only one usage remains, remove
             variable and inline the only usage.
This commit is contained in:
Eliseo Martínez 2014-11-14 09:51:43 +01:00
parent 4a8af9cc99
commit 150b0d66e1

View File

@ -978,7 +978,6 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he
int mb_added = 0; int mb_added = 0;
int numberextra; int numberextra;
char_u *ps; char_u *ps;
int tab_corr = (*s == TAB);
int n; int n;
// No 'linebreak', 'showbreak' and 'breakindent': return quickly. // No 'linebreak', 'showbreak' and 'breakindent': return quickly.
@ -992,7 +991,7 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he
// First get normal size, without 'linebreak' // First get normal size, without 'linebreak'
int size = win_chartabsize(wp, s, col); int size = win_chartabsize(wp, s, col);
int c = *s; int c = *s;
if (tab_corr) { if (*s == TAB) {
col_adj = size - 1; col_adj = size - 1;
} }
@ -1034,7 +1033,6 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he
if (col2 >= colmax) { /* doesn't fit */ if (col2 >= colmax) { /* doesn't fit */
size = colmax - col + col_adj; size = colmax - col + col_adj;
tab_corr = FALSE;
break; break;
} }
} }