From f55c15e5f957d8ab1c7a5573c173f45ba382cf0b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 27 Feb 2020 19:54:31 +0100 Subject: cleanup: make CylindersModel::cylinderAt private The last outside use of the function was replaced by calls to data(). Signed-off-by: Berthold Stoeger --- qt-models/cylindermodel.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'qt-models/cylindermodel.cpp') 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); -- cgit v1.2.3-70-g09d2