LibLine: Remove unused cut_mismatching_chars() function

This is superceded by the suggest() mechanism
This commit is contained in:
AnotherTest 2020-04-12 22:48:09 +04:30 committed by Andreas Kling
parent fa0525b8bf
commit 364dbe28d6
Notes: sideshowbarker 2024-07-19 07:39:34 +09:00
2 changed files with 0 additions and 9 deletions

View file

@ -118,14 +118,6 @@ void Editor::stylize(const Span& span, const Style& style)
m_spans_ending.set(span.end(), ending_map);
}
void Editor::cut_mismatching_chars(String& completion, const String& other, size_t start_compare)
{
size_t i = start_compare;
while (i < completion.length() && i < other.length() && completion[i] == other[i])
++i;
completion = completion.substring(0, i);
}
String Editor::get_line(const String& prompt)
{
set_prompt(prompt);

View file

@ -105,7 +105,6 @@ public:
void clear_line();
void insert(const String&);
void insert(const char);
void cut_mismatching_chars(String& completion, const String& other, size_t start_compare);
void stylize(const Span&, const Style&);
void strip_styles()
{