Eliminate variables that are computed, assigned but never

used.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2016-11-28 06:36:10 +00:00
parent 665d2db378
commit c514c3ed4f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309233
2 changed files with 1 additions and 11 deletions

View File

@ -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);

View File

@ -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);