diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-03-11 08:47:37 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-11 08:51:16 -0800 |
commit | 16276faa45279817e363367550a6a37c179251f7 (patch) | |
tree | a9046de58aa4dd7b49488e05bd3abf8fb4d430bc /core | |
parent | a733aaf967af745ebe643c9936750c2833239bfc (diff) | |
download | subsurface-16276faa45279817e363367550a6a37c179251f7.tar.gz |
Remove unused static functions
These became obsolete with commit e2bbd0ceecff ("Rewrite cylinder
merging code from scratch").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/core/dive.c b/core/dive.c index baa34d17b..7e9390682 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1842,35 +1842,6 @@ static void merge_events(struct divecomputer *res, struct divecomputer *src1, st } } -/* Pick whichever has any info (if either). Prefer 'a' */ -static void merge_cylinder_type(cylinder_type_t *src, cylinder_type_t *dst) -{ - if (!dst->size.mliter) - dst->size.mliter = src->size.mliter; - if (!dst->workingpressure.mbar) - dst->workingpressure.mbar = src->workingpressure.mbar; - if (!dst->description) { - dst->description = src->description; - src->description = NULL; - } -} - -static void merge_cylinder_mix(struct gasmix *src, struct gasmix *dst) -{ - if (!dst->o2.permille) - *dst = *src; -} - -static void merge_cylinder_info(cylinder_t *src, cylinder_t *dst) -{ - merge_cylinder_type(&src->type, &dst->type); - merge_cylinder_mix(&src->gasmix, &dst->gasmix); - MERGE_MAX(dst, dst, src, start.mbar); - MERGE_MIN(dst, dst, src, end.mbar); - if (!dst->cylinder_use) - dst->cylinder_use = src->cylinder_use; -} - static void merge_weightsystem_info(weightsystem_t *res, weightsystem_t *a, weightsystem_t *b) { if (!a->weight.grams) @@ -1949,13 +1920,6 @@ extern void fill_pressures(struct gas_pressures *pressures, const double amb_pre } } -static int find_cylinder_match(cylinder_t *cyl, cylinder_t array[], unsigned int used) -{ - if (cylinder_nodata(cyl)) - return -1; - return find_best_gasmix_match(&cyl->gasmix, array, used); -} - /* Force an initial gaschange event to the (old) gas #0 */ static void add_initial_gaschange(struct dive *dive, struct divecomputer *dc) { |