mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibLine: Remove unused cut_mismatching_chars() function
This is superceded by the suggest() mechanism
This commit is contained in:
parent
fa0525b8bf
commit
364dbe28d6
2 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue