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:
parent
11975b7f31
commit
49ca512733
@ -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())
|
||||
|
@ -9,7 +9,6 @@
|
||||
namespace Kakoune
|
||||
{
|
||||
|
||||
StringView trim_whitespaces(StringView str);
|
||||
String trim_indent(StringView str);
|
||||
|
||||
String escape(StringView str, StringView characters, char escape);
|
||||
|
Loading…
Reference in New Issue
Block a user