summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/AbstractTableView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/AbstractTableView.cpp')
-rw-r--r--Libraries/LibGUI/AbstractTableView.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/Libraries/LibGUI/AbstractTableView.cpp b/Libraries/LibGUI/AbstractTableView.cpp
index 094f637d01..9e8694b0ad 100644
--- a/Libraries/LibGUI/AbstractTableView.cpp
+++ b/Libraries/LibGUI/AbstractTableView.cpp
@@ -59,9 +59,6 @@ void AbstractTableView::select_all()
void AbstractTableView::update_column_sizes()
{
- if (!m_size_columns_to_fit_content)
- return;
-
if (!model())
return;
@@ -249,13 +246,7 @@ int AbstractTableView::column_width(int column_index) const
{
if (!model())
return 0;
- auto& column_data = this->column_data(column_index);
- if (!column_data.has_initialized_width) {
- ASSERT(!m_size_columns_to_fit_content);
- column_data.has_initialized_width = true;
- column_data.width = model()->column_metadata(column_index).preferred_width;
- }
- return column_data.width;
+ return column_data(column_index).width;
}
void AbstractTableView::mousemove_event(MouseEvent& event)