From 49ca5127336d1bac7b3e64e3efa7b20060a9f96a Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Sat, 2 Nov 2019 16:20:37 -0400 Subject: Remove unused trim_whitespaces() --- src/string_utils.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/string_utils.cc') diff --git a/src/string_utils.cc b/src/string_utils.cc index a87d4cc3..43e7ef18 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -9,16 +9,6 @@ namespace Kakoune { -StringView trim_whitespaces(StringView str) -{ - auto beg = str.begin(), end = str.end(); - while (beg != end and is_blank(*beg)) - ++beg; - while (beg != end and is_blank(*(end-1))) - --end; - return {beg, end}; -} - String trim_indent(StringView str) { if (str.empty()) -- cgit v1.2.3