diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-10 12:03:34 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-10 12:03:34 +1100 |
| commit | e74fba928993ecd6502215ccfe5aaa8d58de7a30 (patch) | |
| tree | c4702042bdba828a34644c48a8fcff953f478986 /src/string_utils.cc | |
| parent | 1713d1db7acab3a058939550588c051686638045 (diff) | |
| parent | 87e5a2f512a37b0b4a9f1a5700b0f54424e48f26 (diff) | |
Merge remote-tracking branch 'eraserhd/cppcheck'
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()) |
