mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizing
Auto-sizing of view columns is now enabled by default. This removes the last remaining need for ColumnMetadata, so this patch gets rid of it.
This commit is contained in:
@@ -91,12 +91,6 @@ bool JsonArrayModel::remove(int row)
|
||||
return true;
|
||||
}
|
||||
|
||||
Model::ColumnMetadata JsonArrayModel::column_metadata(int column) const
|
||||
{
|
||||
ASSERT(column < static_cast<int>(m_fields.size()));
|
||||
return { 100 };
|
||||
}
|
||||
|
||||
Variant JsonArrayModel::data(const ModelIndex& index, Role role) const
|
||||
{
|
||||
auto& field_spec = m_fields[index.column()];
|
||||
|
||||
Reference in New Issue
Block a user