mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 19:37:34 +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);
|
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)
|
String Editor::get_line(const String& prompt)
|
||||||
{
|
{
|
||||||
set_prompt(prompt);
|
set_prompt(prompt);
|
||||||
|
|
|
@ -105,7 +105,6 @@ public:
|
||||||
void clear_line();
|
void clear_line();
|
||||||
void insert(const String&);
|
void insert(const String&);
|
||||||
void insert(const char);
|
void insert(const char);
|
||||||
void cut_mismatching_chars(String& completion, const String& other, size_t start_compare);
|
|
||||||
void stylize(const Span&, const Style&);
|
void stylize(const Span&, const Style&);
|
||||||
void strip_styles()
|
void strip_styles()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue