From e5c70de1ee7fef992244935cb8c9643cc76653ec Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 16 Nov 2014 18:39:29 +0000 Subject: Remove unused DivesFilteredOut variable It's kinda redundant, anyway, given that we know the total number of dives. Signed-off-by: Dirk Hohndel --- qt-ui/filtermodels.cpp | 5 +---- qt-ui/filtermodels.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/filtermodels.cpp b/qt-ui/filtermodels.cpp index c599a6578..a25f501f0 100644 --- a/qt-ui/filtermodels.cpp +++ b/qt-ui/filtermodels.cpp @@ -329,7 +329,6 @@ void MultiFilterSortModel::myInvalidate() DiveListView *dlv = MainWindow::instance()->dive_list(); divesDisplayed = 0; - divesFilteredOut = 0; invalidate(); @@ -356,9 +355,7 @@ void MultiFilterSortModel::myInvalidate() } for_each_dive (i,d) { - if (d->hidden_by_filter) - divesFilteredOut++; - else + if (!d->hidden_by_filter) divesDisplayed++; } diff --git a/qt-ui/filtermodels.h b/qt-ui/filtermodels.h index 0fa83da23..1406b8272 100644 --- a/qt-ui/filtermodels.h +++ b/qt-ui/filtermodels.h @@ -88,7 +88,6 @@ public: virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; void addFilterModel(MultiFilterInterface *model); void removeFilterModel(MultiFilterInterface *model); - int divesFilteredOut; int divesDisplayed; public slots: -- cgit v1.2.3-70-g09d2