LibGUI: Remove Model::row_name() since nothing used it

This commit is contained in:
Andreas Kling 2020-05-21 20:19:43 +02:00
parent 278b307713
commit 248f2d5cf5
Notes: sideshowbarker 2024-07-19 06:16:33 +09:00
3 changed files with 0 additions and 7 deletions

View file

@ -67,7 +67,6 @@ public:
virtual int row_count(const ModelIndex& = ModelIndex()) const = 0;
virtual int column_count(const ModelIndex& = ModelIndex()) const = 0;
virtual String row_name(int) const { return {}; }
virtual String column_name(int) const { return {}; }
virtual Variant data(const ModelIndex&, Role = Role::Display) const = 0;
virtual void update() = 0;

View file

@ -64,11 +64,6 @@ ModelIndex SortingProxyModel::map_to_target(const ModelIndex& index) const
return target().index(m_row_mappings[index.row()], index.column());
}
String SortingProxyModel::row_name(int index) const
{
return target().row_name(index);
}
String SortingProxyModel::column_name(int index) const
{
return target().column_name(index);

View file

@ -37,7 +37,6 @@ public:
virtual int row_count(const ModelIndex& = ModelIndex()) const override;
virtual int column_count(const ModelIndex& = ModelIndex()) const override;
virtual String row_name(int) const override;
virtual String column_name(int) const override;
virtual Variant data(const ModelIndex&, Role = Role::Display) const override;
virtual void update() override;