From b51710c01ed481504a8103ab339adf3c01f83f7b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 11 Nov 2014 01:42:27 -0800 Subject: [PATCH] Remove leftover code for directly parsing Cobalt tank sizes This should have been ripped out as part of commit 4be760463422 ("Use libdivecomputer tank size when available"). Signed-off-by: Dirk Hohndel --- libdivecomputer.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/libdivecomputer.c b/libdivecomputer.c index 08a7f2800..77501f6da 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -31,27 +31,6 @@ static dc_status_t create_parser(device_data_t *devdata, dc_parser_t **parser) return dc_parser_new(parser, devdata->device); } -/* Atomics Aquatics Cobalt specific parsing of tank information - * realistically this REALLY needs to be done in libdivecomputer - but the - * current API doesn't even have the notion of tank size, so for now I do - * this here, but I need to work with Jef to make sure this gets added in - * the new libdivecomputer API */ -#define COBALT_HEADER 228 -struct atomics_gas_info { - uint8_t gas_nr; - uint8_t po2imit; - uint8_t tankspecmethod; /* 1: CF@psi 2: CF@bar 3: wet vol in deciliter */ - uint8_t gasmixtype; - uint8_t fo2; - uint8_t fhe; - uint16_t startpressure; /* in psi */ - uint16_t tanksize; /* CF or dl */ - uint16_t workingpressure; - uint16_t sensorid; - uint16_t endpressure; /* in psi */ - uint16_t totalconsumption; /* in liters */ -}; - static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t *parser, int ngases, const unsigned char *data) {