From d597b6dca543f1f43d3921e001f45b76975b36f2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 27 Feb 2020 20:43:33 +0100 Subject: 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 --- qt-models/cylindermodel.cpp | 10 ---------- qt-models/cylindermodel.h | 4 ---- 2 files changed, 14 deletions(-) (limited to 'qt-models') 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; -- cgit v1.2.3-70-g09d2