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(); source.clear();
} }
void CylindersModelFiltered::add()
{
source.add();
}
CylindersModel *CylindersModelFiltered::model() CylindersModel *CylindersModelFiltered::model()
{ {
return &source; return &source;
} }
void CylindersModelFiltered::remove(QModelIndex index)
{
source.remove(mapToSource(index));
}
bool CylindersModelFiltered::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const bool CylindersModelFiltered::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
{ {
return prefs.display_unused_tanks || source.cylinderUsed(source_row); return prefs.display_unused_tanks || source.cylinderUsed(source_row);

View file

@ -70,11 +70,7 @@ public:
CylindersModel *model(); // Access to unfiltered base model CylindersModel *model(); // Access to unfiltered base model
void clear(); void clear();
void add();
void updateDive(dive *d); void updateDive(dive *d);
public
slots:
void remove(QModelIndex index);
private: private:
CylindersModel source; CylindersModel source;
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;