aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/equipment.c9
-rw-r--r--core/equipment.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/core/equipment.c b/core/equipment.c
index 27d01692e..4be46ed1e 100644
--- a/core/equipment.c
+++ b/core/equipment.c
@@ -282,15 +282,6 @@ void remove_cylinder(struct dive *dive, int idx)
remove_from_cylinder_table(&dive->cylinders, idx);
}
-// cyl is cloned.
-void set_cylinder(struct dive *dive, int idx, cylinder_t cyl)
-{
- if (idx < 0 || idx >= dive->cylinders.nr)
- return;
- free_cylinder(dive->cylinders.cylinders[idx]);
- dive->cylinders.cylinders[idx] = clone_cylinder(cyl);
-}
-
void remove_weightsystem(struct dive *dive, int idx)
{
remove_from_weightsystem_table(&dive->weightsystems, idx);
diff --git a/core/equipment.h b/core/equipment.h
index af410467f..081a13835 100644
--- a/core/equipment.h
+++ b/core/equipment.h
@@ -85,7 +85,6 @@ 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 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);
extern void set_weightsystem(struct dive *dive, int idx, weightsystem_t ws);
extern void reset_cylinders(struct dive *dive, bool track_gas);