summaryrefslogtreecommitdiffstats
path: root/qt-ui/filtermodels.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-16 18:39:29 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-16 18:39:29 +0000
commite5c70de1ee7fef992244935cb8c9643cc76653ec (patch)
treeda37aa0cd7d5d6208f5364bbfce5d558daca1dcd /qt-ui/filtermodels.cpp
parent05e02b939a70bac0078211a5c1a94e698b3b5c2b (diff)
downloadsubsurface-e5c70de1ee7fef992244935cb8c9643cc76653ec.tar.gz
Remove unused DivesFilteredOut variable
It's kinda redundant, anyway, given that we know the total number of dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/filtermodels.cpp')
-rw-r--r--qt-ui/filtermodels.cpp5
1 files changed, 1 insertions, 4 deletions
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++;
}