aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/libdivecomputer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 3443886b6..499428fc8 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1212,19 +1212,6 @@ char *transport_string[] = {
"BLE"
};
-static char *transport_to_string(int t)
-{
- static char buf[1024];
- buf[0] = '\0';
- for (int i = 0; i < 6; i++) {
- if (t & (1<<i)) {
- strncat(buf, transport_string[i], 1024);
- strncat(buf, " ", 1024);
- }
- }
- return buf;
-}
-
/*
* Get the transports supported by us (as opposed to
* the list of transports supported by a particular
@@ -1264,8 +1251,6 @@ unsigned int get_supported_transports(device_data_t *data)
supported &= ~(DC_TRANSPORT_BLUETOOTH | DC_TRANSPORT_BLE);
}
}
- report_error("get_supported_transports returns");
- report_error(transport_to_string(supported));
return supported;
}
@@ -1277,8 +1262,6 @@ dc_status_t divecomputer_device_open(device_data_t *data)
unsigned int transports, supported;
transports = dc_descriptor_get_transports(descriptor);
- report_error("dc_descriptor_get_transports");
- report_error(transport_to_string(transports));
supported = get_supported_transports(data);
transports &= supported;