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>
This commit is contained in:
Dirk Hohndel 2014-11-16 18:39:29 +00:00
parent 05e02b939a
commit e5c70de1ee
2 changed files with 1 additions and 5 deletions

View file

@ -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++;
}

View file

@ -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: