summaryrefslogtreecommitdiff
path: root/Libraries/LibLine
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-04 11:04:15 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-04 17:42:08 +0200
commitd0ad82f5c0b6c31cb5fb0bd51a3647a73c33f34c (patch)
treeb85b4958950aed1b294c4c0282098b9dae920238 /Libraries/LibLine
parentd8b6314018b4a3f9217752dca2f421c4e598b3c8 (diff)
downloadserenity-d0ad82f5c0b6c31cb5fb0bd51a3647a73c33f34c.zip
LibLine: Removed unused private field m_prompt_metrics
Diffstat (limited to 'Libraries/LibLine')
-rw-r--r--Libraries/LibLine/Editor.cpp2
-rw-r--r--Libraries/LibLine/SuggestionDisplay.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp
index 94be98a68f..e73b430e8d 100644
--- a/Libraries/LibLine/Editor.cpp
+++ b/Libraries/LibLine/Editor.cpp
@@ -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()
diff --git a/Libraries/LibLine/SuggestionDisplay.h b/Libraries/LibLine/SuggestionDisplay.h
index 80606bc5fc..434b0ee3a2 100644
--- a/Libraries/LibLine/SuggestionDisplay.h
+++ b/Libraries/LibLine/SuggestionDisplay.h
@@ -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;