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:
Berthold Stoeger 2020-02-27 20:43:33 +01:00
parent ff38c03e00
commit d597b6dca5
2 changed files with 0 additions and 14 deletions

View file

@ -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);

View file

@ -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;