mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibGUI: Remove ItemListModel::try_create()
This commit is contained in:
parent
a6f6a1afd2
commit
f570a0f0b8
1 changed files with 0 additions and 11 deletions
|
@ -36,17 +36,6 @@ public:
|
|||
return adopt_ref(*new ItemListModel<T, Container>(data, row_count));
|
||||
}
|
||||
|
||||
static ErrorOr<NonnullRefPtr<ItemListModel>> try_create(Container const& data, ColumnNamesT const& column_names, Optional<size_t> const& row_count = {})
|
||||
requires(IsTwoDimensional)
|
||||
{
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) ItemListModel<T, Container, ColumnNameListType>(data, column_names, row_count));
|
||||
}
|
||||
static ErrorOr<NonnullRefPtr<ItemListModel>> try_create(Container const& data, Optional<size_t> const& row_count = {})
|
||||
requires(!IsTwoDimensional)
|
||||
{
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) ItemListModel<T, Container>(data, row_count));
|
||||
}
|
||||
|
||||
virtual ~ItemListModel() override = default;
|
||||
|
||||
virtual int row_count(ModelIndex const& index) const override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue