Eliminate variables that are computed, assigned but never
used. MFC after: 2 weeks
This commit is contained in:
parent
8c1593bea2
commit
6269645ad5
@ -910,7 +910,6 @@ bws_month_score(const struct bwstring *s0)
|
||||
|
||||
if (MB_CUR_MAX == 1) {
|
||||
const unsigned char *end, *s;
|
||||
size_t len;
|
||||
|
||||
s = s0->data.cstr;
|
||||
end = s + s0->len;
|
||||
@ -918,8 +917,6 @@ bws_month_score(const struct bwstring *s0)
|
||||
while (isblank(*s) && s < end)
|
||||
++s;
|
||||
|
||||
len = strlen((const char*)s);
|
||||
|
||||
for (int i = 11; i >= 0; --i) {
|
||||
if (cmonths[i] &&
|
||||
(s == (unsigned char*)strstr((const char*)s, (char*)(cmonths[i]))))
|
||||
@ -928,7 +925,6 @@ bws_month_score(const struct bwstring *s0)
|
||||
|
||||
} else {
|
||||
const wchar_t *end, *s;
|
||||
size_t len;
|
||||
|
||||
s = s0->data.wstr;
|
||||
end = s + s0->len;
|
||||
@ -936,8 +932,6 @@ bws_month_score(const struct bwstring *s0)
|
||||
while (iswblank(*s) && s < end)
|
||||
++s;
|
||||
|
||||
len = wcslen(s);
|
||||
|
||||
for (int i = 11; i >= 0; --i) {
|
||||
if (wmonths[i] && (s == wcsstr(s, wmonths[i])))
|
||||
return (i);
|
||||
|
@ -209,14 +209,10 @@ sort_modifier_empty(struct sort_mods *sm)
|
||||
static void
|
||||
usage(bool opt_err)
|
||||
{
|
||||
struct option *o;
|
||||
FILE *out;
|
||||
|
||||
out = stdout;
|
||||
o = &(long_options[0]);
|
||||
out = opt_err ? stderr : stdout;
|
||||
|
||||
if (opt_err)
|
||||
out = stderr;
|
||||
fprintf(out, getstr(12), getprogname());
|
||||
if (opt_err)
|
||||
exit(2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user