From ff6c1a34ad362347e2a3903f3882837d8e455b73 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Oct 2020 20:15:41 +0200 Subject: cleanup: remove unused function is_default_dive_computer() The last actual user was apparently removed back in 2013(!): 34db6dc2bea6173c070c9820a2e57a511b9ca0b1 Signed-off-by: Berthold Stoeger --- core/device.cpp | 5 ----- core/display.h | 1 - 2 files changed, 6 deletions(-) (limited to 'core') diff --git a/core/device.cpp b/core/device.cpp index b4c78abe5..5b59ce74d 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -317,11 +317,6 @@ extern "C" void call_for_each_dc (void *f, void (*callback)(void *, const char * } } -extern "C" int is_default_dive_computer(const char *vendor, const char *product) -{ - return qPrefDiveComputer::vendor() == vendor && qPrefDiveComputer::product() == product; -} - extern "C" int is_default_dive_computer_device(const char *name) { return qPrefDiveComputer::device() == name; diff --git a/core/display.h b/core/display.h index cdeac9961..8fbe34261 100644 --- a/core/display.h +++ b/core/display.h @@ -30,7 +30,6 @@ extern struct divecomputer *select_dc(struct dive *); extern unsigned int dc_number; extern int is_default_dive_computer_device(const char *); -extern int is_default_dive_computer(const char *, const char *); typedef void (*device_callback_t)(const char *name, void *userdata); -- cgit v1.2.3-70-g09d2