Uemis: remove trip deletion on dive deletion
Since ff9506b21bbb9910256841dcb577bcb2e19047e8 the downloaders don't add dives to a new trip, but the import code does. Remove the code in the Uemis downloader that would remove a dive from the trip. The code has been broken recently anyway (instead of testing for trip, it tested for the notrip flag, which make no sense whatsoever). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2cda456282
commit
a729911893
@ -847,8 +847,6 @@ static bool uemis_delete_dive(device_data_t *devdata, uint32_t diveid)
|
||||
}
|
||||
if (dive) {
|
||||
devdata->download_table->dives[--devdata->download_table->nr] = NULL;
|
||||
if (dive->notrip)
|
||||
remove_dive_from_trip(dive, &trip_table);
|
||||
|
||||
free(dive->dc.sample);
|
||||
free((void *)dive->notes);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user