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:
2020-10-23 07:53:37 +02:00
parent 77973fc026
commit c503954f44

View File

@@ -353,13 +353,6 @@ fun print (const ncstring &nc, int limit) -> int {
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 {
int total = 0;
for (const auto &c : nc)