summaryrefslogtreecommitdiffstats
path: root/qt-models/cylindermodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-27 19:54:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-28 08:12:26 -0800
commitf55c15e5f957d8ab1c7a5573c173f45ba382cf0b (patch)
tree65f5a847f5c4fd19cff553493a448d328dacb95b /qt-models/cylindermodel.cpp
parentcb80ff746b687a3ad29b53d9f633cbdc6b142c71 (diff)
downloadsubsurface-f55c15e5f957d8ab1c7a5573c173f45ba382cf0b.tar.gz
cleanup: make CylindersModel::cylinderAt private
The last outside use of the function was replaced by calls to data(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/cylindermodel.cpp')
-rw-r--r--qt-models/cylindermodel.cpp5
1 files changed, 0 insertions, 5 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);