summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-27 20:43:33 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commitd597b6dca543f1f43d3921e001f45b76975b36f2 (patch)
treece3e287e8ae3bd59c279f667244f1339f752bb98 /qt-models
parentff38c03e0069e57a5dae7907441c53eb776c65f0 (diff)
downloadsubsurface-d597b6dca543f1f43d3921e001f45b76975b36f2.tar.gz
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>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/cylindermodel.cpp10
-rw-r--r--qt-models/cylindermodel.h4
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;