From 8cde21a41ded4a774b86d112ae357750c15c0b10 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 28 Feb 2019 21:25:22 +0100 Subject: Cleanup: remove dc_user_device_t::trip Since ff9506b21bbb9910256841dcb577bcb2e19047e8 the downloaders don't add dives to a new trip and therefore the trip field of dc_user_device_t became pointless. Remove it. Signed-off-by: Berthold Stoeger --- core/downloadfromdcthread.cpp | 1 - core/libdivecomputer.h | 1 - 2 files changed, 2 deletions(-) diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp index 97e04c48b..214854342 100644 --- a/core/downloadfromdcthread.cpp +++ b/core/downloadfromdcthread.cpp @@ -257,7 +257,6 @@ void show_computer_list() DCDeviceData::DCDeviceData() { memset(&data, 0, sizeof(data)); - data.trip = nullptr; data.download_table = nullptr; data.diveid = 0; data.deviceid = 0; diff --git a/core/libdivecomputer.h b/core/libdivecomputer.h index 8f6d222db..db3d0a0ff 100644 --- a/core/libdivecomputer.h +++ b/core/libdivecomputer.h @@ -38,7 +38,6 @@ typedef struct dc_user_device_t dc_device_t *device; dc_context_t *context; dc_iostream_t *iostream; - struct dive_trip *trip; int preexisting; bool force_download; bool libdc_log; -- cgit v1.2.3-70-g09d2