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();
|
||||
|
||||
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++;
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue