diff options
-rw-r--r-- | qt-models/cylindermodel.cpp | 5 | ||||
-rw-r--r-- | qt-models/cylindermodel.h | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 4c56d9914..201676bde 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -647,11 +647,6 @@ void CylindersModelFiltered::remove(QModelIndex index) source.remove(mapToSource(index)); } -cylinder_t *CylindersModelFiltered::cylinderAt(const QModelIndex &index) -{ - return source.cylinderAt(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 41de5fae5..5cfe72d2d 100644 --- a/qt-models/cylindermodel.h +++ b/qt-models/cylindermodel.h @@ -45,7 +45,6 @@ public: void updateDecoDepths(pressure_t olddecopo2); void updateTrashIcon(); void moveAtFirst(int cylid); - cylinder_t *cylinderAt(const QModelIndex &index); bool changed; QVariant headerData(int section, Qt::Orientation orientation, int role) const override; bool updateBestMixes(); @@ -58,6 +57,7 @@ slots: private: int rows; + cylinder_t *cylinderAt(const QModelIndex &index); }; // Cylinder model that hides unused cylinders if the pref.show_unused_cylinders flag is not set @@ -70,7 +70,6 @@ public: void clear(); void add(); void updateDive(); - cylinder_t *cylinderAt(const QModelIndex &index); public slots: void remove(QModelIndex index); |