diff options
-rw-r--r-- | qt-models/cylindermodel.cpp | 10 | ||||
-rw-r--r-- | qt-models/cylindermodel.h | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 62f9118f1..d76cdb344 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -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); diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h index ebebb46ab..d3d87b900 100644 --- a/qt-models/cylindermodel.h +++ b/qt-models/cylindermodel.h @@ -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; |