diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-16 18:39:29 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-16 18:39:29 +0000 |
commit | e5c70de1ee7fef992244935cb8c9643cc76653ec (patch) | |
tree | da37aa0cd7d5d6208f5364bbfce5d558daca1dcd | |
parent | 05e02b939a70bac0078211a5c1a94e698b3b5c2b (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/filtermodels.cpp | 5 | ||||
-rw-r--r-- | qt-ui/filtermodels.h | 1 |
2 files changed, 1 insertions, 5 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++; } 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: |