Uemis: remove trip deletion on dive deletion

Since ff9506b21b 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:
Berthold Stoeger 2019-02-28 21:05:36 +01:00 committed by Dirk Hohndel
parent 2cda456282
commit a729911893

View file

@ -847,8 +847,6 @@ static bool uemis_delete_dive(device_data_t *devdata, uint32_t diveid)
} }
if (dive) { if (dive) {
devdata->download_table->dives[--devdata->download_table->nr] = NULL; devdata->download_table->dives[--devdata->download_table->nr] = NULL;
if (dive->notrip)
remove_dive_from_trip(dive, &trip_table);
free(dive->dc.sample); free(dive->dc.sample);
free((void *)dive->notes); free((void *)dive->notes);