mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +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
Notes:
sideshowbarker
2024-07-19 07:39:34 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/364dbe28d68 Pull-request: https://github.com/SerenityOS/serenity/pull/1767 Issue: https://github.com/SerenityOS/serenity/issues/1535 Issue: https://github.com/SerenityOS/serenity/issues/1762
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);
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue