From a729911893bea023d4e83c266ca28fad58cbb5f6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 28 Feb 2019 21:05:36 +0100 Subject: 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 --- core/uemis-downloader.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'core') 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); -- cgit v1.2.3-70-g09d2