mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
LibLine: Removed unused private field m_prompt_metrics
This commit is contained in:
parent
d8b6314018
commit
d0ad82f5c0
2 changed files with 2 additions and 4 deletions
|
@ -53,7 +53,7 @@ Editor::Editor(Configuration configuration)
|
|||
m_always_refresh = configuration.refresh_behaviour == Configuration::RefreshBehaviour::Eager;
|
||||
m_pending_chars = ByteBuffer::create_uninitialized(0);
|
||||
get_terminal_size();
|
||||
m_suggestion_display = make<XtermSuggestionDisplay>(m_num_lines, m_num_columns, m_cached_prompt_metrics);
|
||||
m_suggestion_display = make<XtermSuggestionDisplay>(m_num_lines, m_num_columns);
|
||||
}
|
||||
|
||||
Editor::~Editor()
|
||||
|
|
|
@ -62,10 +62,9 @@ protected:
|
|||
|
||||
class XtermSuggestionDisplay : public SuggestionDisplay {
|
||||
public:
|
||||
XtermSuggestionDisplay(size_t lines, size_t columns, const StringMetrics& prompt_metrics)
|
||||
XtermSuggestionDisplay(size_t lines, size_t columns)
|
||||
: m_num_lines(lines)
|
||||
, m_num_columns(columns)
|
||||
, m_prompt_metrics(prompt_metrics)
|
||||
{
|
||||
}
|
||||
virtual ~XtermSuggestionDisplay() override { }
|
||||
|
@ -94,7 +93,6 @@ private:
|
|||
size_t m_num_lines { 0 };
|
||||
size_t m_num_columns { 0 };
|
||||
size_t m_prompt_lines_at_suggestion_initiation { 0 };
|
||||
const StringMetrics& m_prompt_metrics;
|
||||
|
||||
struct PageRange {
|
||||
size_t start;
|
||||
|
|
Loading…
Add table
Reference in a new issue