From 4f3a9ba58309e5fc207733edcf01077f78ddf380 Mon Sep 17 00:00:00 2001 From: glerch Date: Mon, 7 Sep 2015 20:54:54 +0200 Subject: Uemis downloader: code cleanup Do some cleanup of the code, there might be more of that as I am still learning the Uemis code Signed-off-by: glerch Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/uemis-downloader.c b/uemis-downloader.c index 1c639aa67..e245c2344 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -61,8 +61,6 @@ static char *mbuf = NULL; static int mbuf_size = 0; static int nr_divespots = -1; -static int buddies_start = 0; -static int buddies = -1; static int max_mem_used = -1; static int next_table_index = 0; @@ -1225,13 +1223,6 @@ const char *do_uemis_import(device_data_t *data) break; } - /* - for (int i = iStartCleanup; i < data->download_table->nr; i++) - if (!data->download_table->dives[i]->downloaded) { - uemis_delete_dive(data, data->download_table->dives[i]->dc.diveid); - i = (i > iStartCleanup ? i-- : i = iStartCleanup); - } - */ start = end; /* Do some memory checking here */ -- cgit v1.2.3-70-g09d2