cleanup: remove unused data and bogus UNUSED in libdivecomputer.c

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-01 13:06:18 +01:00 committed by Dirk Hohndel
parent cedccbc340
commit cb3e21c443

View file

@ -1081,7 +1081,6 @@ static void lookup_fingerprint(dc_device_t *device, device_data_t *devdata)
static void event_cb(dc_device_t *device, dc_event_type_t event, const void *data, void *userdata) static void event_cb(dc_device_t *device, dc_event_type_t event, const void *data, void *userdata)
{ {
UNUSED(device);
static unsigned int last = 0; static unsigned int last = 0;
const dc_event_progress_t *progress = data; const dc_event_progress_t *progress = data;
const dc_event_devinfo_t *devinfo = data; const dc_event_devinfo_t *devinfo = data;
@ -1245,15 +1244,6 @@ void logfunc(dc_context_t *context, dc_loglevel_t loglevel, const char *file, un
} }
} }
char *transport_string[] = {
"SERIAL",
"USB",
"USBHID",
"IRDA",
"BT",
"BLE"
};
/* /*
* Get the transports supported by us (as opposed to * Get the transports supported by us (as opposed to
* the list of transports supported by a particular * the list of transports supported by a particular