mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibLine: Remove unused cut_mismatching_chars() function
This is superceded by the suggest() mechanism
This commit is contained in:
committed by
Andreas Kling
parent
fa0525b8bf
commit
364dbe28d6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user