aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-23 07:53:37 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-23 07:53:37 +0200
commitc503954f4426bd0fb719c9e403d3de36094978ac (patch)
treed8232d4724ee90bcbabab33184a13c738a2761ad
parent77973fc0266b454f44cdcc7782b1a3debdd6d7aa (diff)
downloadsdn-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.
-rw-r--r--sdn.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/sdn.cpp b/sdn.cpp
index ab07d3a..5876cfd 100644
--- a/sdn.cpp
+++ b/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)