summaryrefslogtreecommitdiff
path: root/src/string_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_utils.cc')
-rw-r--r--src/string_utils.cc10
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())