diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-28 21:05:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-02-28 15:31:48 -0800 |
commit | a729911893bea023d4e83c266ca28fad58cbb5f6 (patch) | |
tree | 6acb544811385494023479d19a970e210f8331ea /core/uemis-downloader.c | |
parent | 2cda45628202c7dc0ad695d3aea5a02f2daf7caa (diff) | |
download | subsurface-a729911893bea023d4e83c266ca28fad58cbb5f6.tar.gz |
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>
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r-- | core/uemis-downloader.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index 35dc817b0..f66713565 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -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); |