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/equipment.c | |
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/equipment.c')
-rw-r--r-- | core/equipment.c | 14 |
1 files changed, 0 insertions, 14 deletions
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 |