mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:33:23 +00:00
Remove unused static functions
These became obsolete with commit e2bbd0ceec
("Rewrite cylinder
merging code from scratch").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a733aaf967
commit
16276faa45
1 changed files with 0 additions and 36 deletions
36
core/dive.c
36
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue