From c503954f4426bd0fb719c9e403d3de36094978ac Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 23 Oct 2020 07:53:37 +0200 Subject: Cleanup The wchar_t variant of compute_width() is no longer needed. So all in all the better help has saved code. --- sdn.cpp | 7 ------- 1 file changed, 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) -- cgit v1.2.3-70-g09d2