summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/dive.h1
-rw-r--r--core/equipment.c14
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