mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibGUI: Remove ItemListModel::try_create()
This commit is contained in:
parent
a6f6a1afd2
commit
f570a0f0b8
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/tcl3
Commit: f570a0f0b8
Pull-request: https://github.com/SerenityOS/serenity/pull/21135
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