diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-05-20 08:46:26 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-10 16:45:42 +0100 |
commit | dc54b4aaeb2ac743e8184c4741009b98739897a7 (patch) | |
tree | db905f13aa54a29fc08c768d51214e25804c1ae2 /core | |
parent | b2c7a4cf1dc6cc18a10c9cc3e70f95d445ac9a84 (diff) | |
download | subsurface-dc54b4aaeb2ac743e8184c4741009b98739897a7.tar.gz |
Unused code: remove weightsystems_equal()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.h | 1 | ||||
-rw-r--r-- | core/equipment.c | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/core/dive.h b/core/dive.h index 0e41b854c..4172c9bca 100644 --- a/core/dive.h +++ b/core/dive.h @@ -984,7 +984,6 @@ extern bool cylinder_nodata(const cylinder_t *cyl); extern bool cylinder_none(void *_data); extern bool weightsystem_none(void *_data); extern bool no_weightsystems(weightsystem_t *ws); -extern bool weightsystems_equal(weightsystem_t *ws1, weightsystem_t *ws2); 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); diff --git a/core/equipment.c b/core/equipment.c index a1b731a14..aca58ba77 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -115,20 +115,6 @@ bool no_weightsystems(weightsystem_t *ws) return true; } -static bool one_weightsystem_equal(weightsystem_t *ws1, weightsystem_t *ws2) -{ - return ws1->weight.grams == ws2->weight.grams && - same_string(ws1->description, ws2->description); -} - -bool weightsystems_equal(weightsystem_t *ws1, weightsystem_t *ws2) -{ - for (int i = 0; i < MAX_WEIGHTSYSTEMS; i++) - if (!one_weightsystem_equal(ws1 + i, ws2 + i)) - return false; - return true; -} - /* * We hardcode the most common standard cylinders, * we should pick up any other names from the dive |