summaryrefslogtreecommitdiffstats
path: root/qt-models/cylindermodel.cpp
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/cylindermodel.cpp
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/cylindermodel.cpp')
-rw-r--r--qt-models/cylindermodel.cpp10
1 files changed, 0 insertions, 10 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);