mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Drop old filter code
Drop tons of now-unused-code. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
43178be1f2
commit
e0f473fcb4
16 changed files with 44 additions and 1045 deletions
|
@ -110,11 +110,6 @@ std::vector<DiveToAdd> DiveListBase::removeDives(std::vector<dive *> &divesToDel
|
|||
std::vector<DiveToAdd> res;
|
||||
res.reserve(divesToDelete.size());
|
||||
|
||||
// First, tell the filters that dives are removed. This could
|
||||
// be done later using the emitted signals, but we do this here
|
||||
// for symmetry with addDives()
|
||||
MultiFilterSortModel::instance()->divesDeleted(QVector<dive *>::fromStdVector(divesToDelete));
|
||||
|
||||
for (dive *d: divesToDelete)
|
||||
res.push_back(removeDive(d));
|
||||
divesToDelete.clear();
|
||||
|
@ -154,7 +149,6 @@ std::vector<dive *> DiveListBase::addDives(std::vector<DiveToAdd> &divesToAdd)
|
|||
QVector<dive *> divesForFilter;
|
||||
for (const DiveToAdd &entry: divesToAdd)
|
||||
divesForFilter.push_back(entry.dive.get());
|
||||
MultiFilterSortModel::instance()->divesAdded(divesForFilter);
|
||||
|
||||
// At the end of the function, to send the proper dives-added signals,
|
||||
// we the the list of added trips. Create this list now.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue