diff options
-rw-r--r-- | core/equipment.c | 9 | ||||
-rw-r--r-- | core/equipment.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/core/equipment.c b/core/equipment.c index 494baf5c1..27d01692e 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -157,15 +157,6 @@ bool same_weightsystem(weightsystem_t w1, weightsystem_t w2) same_string(w1.description, w2.description); } -bool same_cylinder(cylinder_t cyl1, cylinder_t cyl2) -{ - return same_string(cyl1.type.description, cyl2.type.description) && - same_gasmix(cyl1.gasmix, cyl2.gasmix) && - cyl1.start.mbar == cyl2.start.mbar && - cyl1.end.mbar == cyl2.end.mbar && - cyl1.cylinder_use == cyl2.cylinder_use; -} - void get_gas_string(struct gasmix gasmix, char *text, int len) { if (gasmix_is_air(gasmix)) diff --git a/core/equipment.h b/core/equipment.h index 494f8dc2b..af410467f 100644 --- a/core/equipment.h +++ b/core/equipment.h @@ -84,7 +84,6 @@ extern cylinder_t *get_or_create_cylinder(struct dive *d, int idx); extern void add_cylinder_description(const cylinder_type_t *); extern void add_weightsystem_description(const weightsystem_t *); extern bool same_weightsystem(weightsystem_t w1, weightsystem_t w2); -extern bool same_cylinder(cylinder_t cyl1, cylinder_t cyl2); extern void remove_cylinder(struct dive *dive, int idx); extern void set_cylinder(struct dive *dive, int idx, cylinder_t ws); extern void remove_weightsystem(struct dive *dive, int idx); |