Cleanup
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:
parent
77973fc026
commit
c503954f44
7
sdn.cpp
7
sdn.cpp
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user