diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-23 07:53:37 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-23 07:53:37 +0200 |
commit | c503954f4426bd0fb719c9e403d3de36094978ac (patch) | |
tree | d8232d4724ee90bcbabab33184a13c738a2761ad /sdn.cpp | |
parent | 77973fc0266b454f44cdcc7782b1a3debdd6d7aa (diff) | |
download | sdn-c503954f4426bd0fb719c9e403d3de36094978ac.tar.gz sdn-c503954f4426bd0fb719c9e403d3de36094978ac.tar.xz sdn-c503954f4426bd0fb719c9e403d3de36094978ac.zip |
Cleanup
The wchar_t variant of compute_width() is no longer needed.
So all in all the better help has saved code.
Diffstat (limited to 'sdn.cpp')
-rw-r--r-- | sdn.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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) |