mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove unused function argument
Also, only compile the static function where it is used. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0c2bfc1103
commit
7fb4dd7a03
1 changed files with 4 additions and 2 deletions
|
@ -1340,7 +1340,8 @@ static dc_status_t irda_device_open(dc_iostream_t **iostream, dc_context_t *cont
|
||||||
return dc_irda_open(&data->iostream, context, address, 1);
|
return dc_irda_open(&data->iostream, context, address, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dc_status_t bluetooth_device_open(dc_iostream_t **iostream, dc_context_t *context, device_data_t *data)
|
#if defined(BT_SUPPORT) && !defined(__ANDROID__) && !defined(__APPLE__)
|
||||||
|
static dc_status_t bluetooth_device_open(dc_context_t *context, device_data_t *data)
|
||||||
{
|
{
|
||||||
dc_bluetooth_address_t address = 0;
|
dc_bluetooth_address_t address = 0;
|
||||||
dc_iterator_t *iterator = NULL;
|
dc_iterator_t *iterator = NULL;
|
||||||
|
@ -1363,6 +1364,7 @@ static dc_status_t bluetooth_device_open(dc_iostream_t **iostream, dc_context_t
|
||||||
dev_info(data, "Opening rfcomm address %llu", address);
|
dev_info(data, "Opening rfcomm address %llu", address);
|
||||||
return dc_bluetooth_open(&data->iostream, context, address, 0);
|
return dc_bluetooth_open(&data->iostream, context, address, 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
dc_status_t divecomputer_device_open(device_data_t *data)
|
dc_status_t divecomputer_device_open(device_data_t *data)
|
||||||
{
|
{
|
||||||
|
@ -1386,7 +1388,7 @@ dc_status_t divecomputer_device_open(device_data_t *data)
|
||||||
// we don't have BT on iOS in the first place, so this is for Android and macOS
|
// we don't have BT on iOS in the first place, so this is for Android and macOS
|
||||||
rc = rfcomm_stream_open(&data->iostream, context, data->devname);
|
rc = rfcomm_stream_open(&data->iostream, context, data->devname);
|
||||||
#else
|
#else
|
||||||
rc = bluetooth_device_open(&data->iostream, context, data);
|
rc = bluetooth_device_open(context, data);
|
||||||
#endif
|
#endif
|
||||||
if (rc == DC_STATUS_SUCCESS)
|
if (rc == DC_STATUS_SUCCESS)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue