mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
cleanup: remove unused CylindersModelFiltered functions
add() and remove() are not used anymore since this is done using undo commands. The planner uses CylindersModel instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ff38c03e00
commit
d597b6dca5
2 changed files with 0 additions and 14 deletions
|
@ -636,21 +636,11 @@ void CylindersModelFiltered::clear()
|
|||
source.clear();
|
||||
}
|
||||
|
||||
void CylindersModelFiltered::add()
|
||||
{
|
||||
source.add();
|
||||
}
|
||||
|
||||
CylindersModel *CylindersModelFiltered::model()
|
||||
{
|
||||
return &source;
|
||||
}
|
||||
|
||||
void CylindersModelFiltered::remove(QModelIndex index)
|
||||
{
|
||||
source.remove(mapToSource(index));
|
||||
}
|
||||
|
||||
bool CylindersModelFiltered::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
|
||||
{
|
||||
return prefs.display_unused_tanks || source.cylinderUsed(source_row);
|
||||
|
|
|
@ -70,11 +70,7 @@ public:
|
|||
CylindersModel *model(); // Access to unfiltered base model
|
||||
|
||||
void clear();
|
||||
void add();
|
||||
void updateDive(dive *d);
|
||||
public
|
||||
slots:
|
||||
void remove(QModelIndex index);
|
||||
private:
|
||||
CylindersModel source;
|
||||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
|
||||
|
|
Loading…
Reference in a new issue