mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cleanup: remove unused weightsystem_none() function
This function was used to count the number of weightsystems used in a dive. Since the weightsysems are now collected in a dynamic table it became unused. Remove. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
a5e7f4253a
commit
3bb60e8ffe
2 changed files with 0 additions and 6 deletions
|
@ -182,11 +182,6 @@ int find_best_gasmix_match(struct gasmix mix, const cylinder_t array[])
|
|||
return best;
|
||||
}
|
||||
|
||||
bool weightsystem_none(const weightsystem_t *ws)
|
||||
{
|
||||
return !ws->weight.grams && !ws->description;
|
||||
}
|
||||
|
||||
/*
|
||||
* We hardcode the most common standard cylinders,
|
||||
* we should pick up any other names from the dive
|
||||
|
|
|
@ -63,7 +63,6 @@ extern void add_weightsystem_description(const weightsystem_t *);
|
|||
extern bool same_weightsystem(weightsystem_t w1, weightsystem_t w2);
|
||||
extern bool cylinder_nodata(const cylinder_t *cyl);
|
||||
extern bool cylinder_none(const cylinder_t *cyl);
|
||||
extern bool weightsystem_none(const weightsystem_t *ws);
|
||||
extern void remove_cylinder(struct dive *dive, int idx);
|
||||
extern void remove_weightsystem(struct dive *dive, int idx);
|
||||
extern void reset_cylinders(struct dive *dive, bool track_gas);
|
||||
|
|
Loading…
Reference in a new issue