Core: remove dive->downloaded flag

This flag had two distinct uses:
 - signal that dives were downloaded, not imported
 - use to mark imported dives

Both are not used anymore, therefore remove the flag.
The uemis downloaded misused the flag to mark deleted
dives. Instead misuse the "hidden_by_filter" flag.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-10-03 22:03:39 +02:00 committed by Dirk Hohndel
parent 6dc1dcaea5
commit 90b019bc8d
5 changed files with 5 additions and 10 deletions

View file

@ -861,7 +861,6 @@ static int dive_cb(const unsigned char *data, unsigned int size,
add_dive_to_trip(dive, devdata->trip);
}
dive->downloaded = true;
record_dive_to_table(dive, devdata->download_table);
mark_divelist_changed(true);
return true;