The wchar_t variant of compute_width() is no longer needed.

So all in all the better help has saved code.
This commit is contained in:
Přemysl Eric Janouch 2020-10-23 07:53:37 +02:00
parent 77973fc026
commit c503954f44
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -353,13 +353,6 @@ fun print (const ncstring &nc, int limit) -> int {
return total_width; return total_width;
} }
fun compute_width (const wstring &w) -> int {
int total = 0;
for (const auto &c : w)
total += wcwidth (c);
return total;
}
fun compute_width (const ncstring &nc) -> int { fun compute_width (const ncstring &nc) -> int {
int total = 0; int total = 0;
for (const auto &c : nc) for (const auto &c : nc)