1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

Remove unused trim_whitespaces()

This commit is contained in:
Jason Felice 2019-11-02 16:20:37 -04:00
parent 11975b7f31
commit 49ca512733
2 changed files with 0 additions and 11 deletions

View File

@ -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())

View File

@ -9,7 +9,6 @@
namespace Kakoune
{
StringView trim_whitespaces(StringView str);
String trim_indent(StringView str);
String escape(StringView str, StringView characters, char escape);