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