mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove unused function is_default_dive_computer()
The last actual user was apparently removed back in 2013(!):
34db6dc2be
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
39ab754406
commit
ff6c1a34ad
2 changed files with 0 additions and 6 deletions
|
@ -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)
|
extern "C" int is_default_dive_computer_device(const char *name)
|
||||||
{
|
{
|
||||||
return qPrefDiveComputer::device() == name;
|
return qPrefDiveComputer::device() == name;
|
||||||
|
|
|
@ -30,7 +30,6 @@ extern struct divecomputer *select_dc(struct dive *);
|
||||||
extern unsigned int dc_number;
|
extern unsigned int dc_number;
|
||||||
|
|
||||||
extern int is_default_dive_computer_device(const char *);
|
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);
|
typedef void (*device_callback_t)(const char *name, void *userdata);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue