mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
05e02b939a
commit
e5c70de1ee
2 changed files with 1 additions and 5 deletions
|
@ -329,7 +329,6 @@ void MultiFilterSortModel::myInvalidate()
|
||||||
DiveListView *dlv = MainWindow::instance()->dive_list();
|
DiveListView *dlv = MainWindow::instance()->dive_list();
|
||||||
|
|
||||||
divesDisplayed = 0;
|
divesDisplayed = 0;
|
||||||
divesFilteredOut = 0;
|
|
||||||
|
|
||||||
invalidate();
|
invalidate();
|
||||||
|
|
||||||
|
@ -356,9 +355,7 @@ void MultiFilterSortModel::myInvalidate()
|
||||||
}
|
}
|
||||||
|
|
||||||
for_each_dive (i,d) {
|
for_each_dive (i,d) {
|
||||||
if (d->hidden_by_filter)
|
if (!d->hidden_by_filter)
|
||||||
divesFilteredOut++;
|
|
||||||
else
|
|
||||||
divesDisplayed++;
|
divesDisplayed++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,6 @@ public:
|
||||||
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
|
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
|
||||||
void addFilterModel(MultiFilterInterface *model);
|
void addFilterModel(MultiFilterInterface *model);
|
||||||
void removeFilterModel(MultiFilterInterface *model);
|
void removeFilterModel(MultiFilterInterface *model);
|
||||||
int divesFilteredOut;
|
|
||||||
int divesDisplayed;
|
int divesDisplayed;
|
||||||
public
|
public
|
||||||
slots:
|
slots:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue