1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

LibGUI: Remove barely used AbstractView::searching()

This commit is contained in:
Dawid Wolosowicz 2021-09-04 14:52:29 +02:00 committed by Ali Mohammad Pur
parent e96081ef8f
commit 0cbc222c17
2 changed files with 1 additions and 2 deletions

View file

@ -682,7 +682,7 @@ void AbstractView::draw_item_text(Gfx::Painter& painter, const ModelIndex& index
else
text_color = index.data(ModelRole::ForegroundColor).to_color(palette().color(foreground_role()));
if (is_highlighting_searching(index)) {
Utf8View searching_text(searching());
Utf8View searching_text(m_searching);
auto searching_length = searching_text.length();
if (searching_length > search_highlighting_offset)
searching_length -= search_highlighting_offset;