summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/device.cpp10
-rw-r--r--core/device.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/core/device.cpp b/core/device.cpp
index 63e2eea1d..2982910a8 100644
--- a/core/device.cpp
+++ b/core/device.cpp
@@ -298,16 +298,6 @@ extern "C" bool device_used_by_selected_dive(const struct device *dev)
return false;
}
-extern "C" void call_for_each_dc (void *f, void (*callback)(void *, const char *, uint32_t, const char *, const char *, const char *),
- bool select_only)
-{
- for (const device &node: device_table.devices) {
- if (!select_only || device_used_by_selected_dive(&node))
- callback(f, node.model.c_str(), node.deviceId, node.nickName.c_str(),
- node.serialNumber.c_str(), node.firmware.c_str());
- }
-}
-
extern "C" int is_default_dive_computer_device(const char *name)
{
return qPrefDiveComputer::device() == name;
diff --git a/core/device.h b/core/device.h
index 623014b21..e145ce7e2 100644
--- a/core/device.h
+++ b/core/device.h
@@ -22,8 +22,6 @@ extern void set_dc_nickname(struct dive *dive);
extern void create_device_node(const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname);
extern int nr_devices(const struct device_table *table);
extern const struct device *get_device(const struct device_table *table, int i);
-extern void call_for_each_dc(void *f, void (*callback)(void *, const char *, uint32_t,
- const char *, const char *, const char *), bool select_only);
extern void clear_device_nodes();
const char *get_dc_nickname(const struct divecomputer *dc);
extern bool device_used_by_selected_dive(const struct device *dev);