Discard implementation of %L and %U format specifiers, now never used.
This commit is contained in:
parent
df36b62c74
commit
1c4fcaf43e
2 changed files with 2 additions and 25 deletions
14
misc.c
14
misc.c
|
@ -190,20 +190,6 @@ void vspeak(const char* msg, bool blank, va_list ap)
|
|||
size -= len;
|
||||
}
|
||||
|
||||
// All-lowercase specifier.
|
||||
if (msg[i] == 'L' ||
|
||||
msg[i] == 'C') {
|
||||
packed_to_token(arg, renderp); /* unpack directly to destination */
|
||||
int len = strlen(renderp);
|
||||
for (int j = 0; j < len; ++j) {
|
||||
renderp[j] = tolower(renderp[j]);
|
||||
}
|
||||
if (msg[i] == 'C') // First char uppercase, rest lowercase.
|
||||
renderp[0] = toupper(renderp[0]);
|
||||
renderp += len;
|
||||
size -= len;
|
||||
}
|
||||
|
||||
previous_arg = arg;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue