summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:47:37 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:51:16 -0800
commit16276faa45279817e363367550a6a37c179251f7 (patch)
treea9046de58aa4dd7b49488e05bd3abf8fb4d430bc /core
parenta733aaf967af745ebe643c9936750c2833239bfc (diff)
downloadsubsurface-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.c36
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)
{