Remove unused time parameters
Since the clock synchronization has been removed (see commit a1962558412b8c89a79656992c8e7f4d001065c2 for the details), those parameters serve no purpose anymore.
This commit is contained in:
parent
4616e2ed21
commit
e6f091909b
@ -103,7 +103,7 @@ dc_parser_new_internal (dc_parser_t **out, dc_context_t *context, dc_family_t fa
|
|||||||
rc = uwatec_memomouse_parser_create (&parser, context, devtime, systime);
|
rc = uwatec_memomouse_parser_create (&parser, context, devtime, systime);
|
||||||
break;
|
break;
|
||||||
case DC_FAMILY_UWATEC_SMART:
|
case DC_FAMILY_UWATEC_SMART:
|
||||||
rc = uwatec_smart_parser_create (&parser, context, model, devtime, systime);
|
rc = uwatec_smart_parser_create (&parser, context, model);
|
||||||
break;
|
break;
|
||||||
case DC_FAMILY_REEFNET_SENSUS:
|
case DC_FAMILY_REEFNET_SENSUS:
|
||||||
rc = reefnet_sensus_parser_create (&parser, context, devtime, systime);
|
rc = reefnet_sensus_parser_create (&parser, context, devtime, systime);
|
||||||
|
|||||||
@ -35,7 +35,7 @@ dc_status_t
|
|||||||
uwatec_smart_device_open (dc_device_t **device, dc_context_t *context, dc_iostream_t *iostream);
|
uwatec_smart_device_open (dc_device_t **device, dc_context_t *context, dc_iostream_t *iostream);
|
||||||
|
|
||||||
dc_status_t
|
dc_status_t
|
||||||
uwatec_smart_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int model, unsigned int devtime, dc_ticks_t systime);
|
uwatec_smart_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int model);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -139,8 +139,6 @@ typedef struct uwatec_smart_parser_t uwatec_smart_parser_t;
|
|||||||
struct uwatec_smart_parser_t {
|
struct uwatec_smart_parser_t {
|
||||||
dc_parser_t base;
|
dc_parser_t base;
|
||||||
unsigned int model;
|
unsigned int model;
|
||||||
unsigned int devtime;
|
|
||||||
dc_ticks_t systime;
|
|
||||||
const uwatec_smart_sample_info_t *samples;
|
const uwatec_smart_sample_info_t *samples;
|
||||||
const uwatec_smart_header_info_t *header;
|
const uwatec_smart_header_info_t *header;
|
||||||
unsigned int headersize;
|
unsigned int headersize;
|
||||||
@ -570,7 +568,7 @@ uwatec_smart_parser_cache (uwatec_smart_parser_t *parser)
|
|||||||
|
|
||||||
|
|
||||||
dc_status_t
|
dc_status_t
|
||||||
uwatec_smart_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int model, unsigned int devtime, dc_ticks_t systime)
|
uwatec_smart_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int model)
|
||||||
{
|
{
|
||||||
dc_status_t status = DC_STATUS_SUCCESS;
|
dc_status_t status = DC_STATUS_SUCCESS;
|
||||||
uwatec_smart_parser_t *parser = NULL;
|
uwatec_smart_parser_t *parser = NULL;
|
||||||
@ -587,8 +585,6 @@ uwatec_smart_parser_create (dc_parser_t **out, dc_context_t *context, unsigned i
|
|||||||
|
|
||||||
// Set the default values.
|
// Set the default values.
|
||||||
parser->model = model;
|
parser->model = model;
|
||||||
parser->devtime = devtime;
|
|
||||||
parser->systime = systime;
|
|
||||||
parser->trimix = 0;
|
parser->trimix = 0;
|
||||||
for (unsigned int i = 0; i < NEVENTS; ++i) {
|
for (unsigned int i = 0; i < NEVENTS; ++i) {
|
||||||
parser->events[i] = NULL;
|
parser->events[i] = NULL;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user