mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
libdivecomputer.c: Remove unused parameter in parse_gasmixes
data pointer is not used, so it can be safely removed. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3ca4e14d5c
commit
13a0ad020a
1 changed files with 2 additions and 3 deletions
|
@ -68,8 +68,7 @@ static dc_status_t create_parser(device_data_t *devdata, dc_parser_t **parser)
|
||||||
return dc_parser_new(parser, devdata->device);
|
return dc_parser_new(parser, devdata->device);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t *parser, int ngases,
|
static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t *parser, int ngases)
|
||||||
const unsigned char *data)
|
|
||||||
{
|
{
|
||||||
static bool shown_warning = false;
|
static bool shown_warning = false;
|
||||||
int i, rc;
|
int i, rc;
|
||||||
|
@ -579,7 +578,7 @@ static dc_status_t libdc_header_parser(dc_parser_t *parser, struct device_data_t
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rc = parse_gasmixes(devdata, dive, parser, ngases, NULL);
|
rc = parse_gasmixes(devdata, dive, parser, ngases);
|
||||||
if (rc != DC_STATUS_SUCCESS && rc != DC_STATUS_UNSUPPORTED) {
|
if (rc != DC_STATUS_SUCCESS && rc != DC_STATUS_UNSUPPORTED) {
|
||||||
dev_info(devdata, translate("gettextFromC", "Error parsing the gas mix"));
|
dev_info(devdata, translate("gettextFromC", "Error parsing the gas mix"));
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in a new issue