diff options
| author | Jason Felice <jason.m.felice@gmail.com> | 2019-11-02 16:20:37 -0400 |
|---|---|---|
| committer | Jason Felice <jason.m.felice@gmail.com> | 2019-11-09 12:53:45 -0500 |
| commit | 49ca5127336d1bac7b3e64e3efa7b20060a9f96a (patch) | |
| tree | 5fc092f7258c8dfee4d85fc84c0877a16e990d50 /src/string_utils.cc | |
| parent | 11975b7f31da87b739161af13569890f175d1338 (diff) | |
Remove unused trim_whitespaces()
Diffstat (limited to 'src/string_utils.cc')
| -rw-r--r-- | src/string_utils.cc | 10 |
1 files changed, 0 insertions, 10 deletions
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()) |
