diff options
author | Dawid Wolosowicz <d@1823.pl> | 2021-09-04 14:52:29 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-09-08 15:48:02 +0430 |
commit | 0cbc222c175107a39af8ac7bae5fc02739e3b79a (patch) | |
tree | 1374250c573a3e6e1264ed78b0e6d6c1d7191382 /Userland | |
parent | e96081ef8f046c6e90f4dbefd0aec599d8d6170d (diff) | |
download | serenity-0cbc222c175107a39af8ac7bae5fc02739e3b79a.zip |
LibGUI: Remove barely used AbstractView::searching()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractView.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractView.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractView.cpp b/Userland/Libraries/LibGUI/AbstractView.cpp index e86826437b..d4eb73392e 100644 --- a/Userland/Libraries/LibGUI/AbstractView.cpp +++ b/Userland/Libraries/LibGUI/AbstractView.cpp @@ -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; diff --git a/Userland/Libraries/LibGUI/AbstractView.h b/Userland/Libraries/LibGUI/AbstractView.h index e0764c804d..cdb40daa17 100644 --- a/Userland/Libraries/LibGUI/AbstractView.h +++ b/Userland/Libraries/LibGUI/AbstractView.h @@ -163,7 +163,6 @@ protected: void update_edit_widget_position(); bool is_searching() const { return !m_searching.is_null(); } - StringView searching() const { return m_searching; } void cancel_searching(); void start_searching_timer(); void do_search(String&&); |