aboutsummaryrefslogtreecommitdiffstats
path: root/core/equipment.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-05 20:31:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commit3e88bd686fe2f01d3a32b32e6bbff9d92ebfac6d (patch)
tree4c6999c63b70d993e69cd744178356c91f900735 /core/equipment.c
parent219c230506a6af45962071a1be2e875e13f4851e (diff)
downloadsubsurface-3e88bd686fe2f01d3a32b32e6bbff9d92ebfac6d.tar.gz
Cleanup: remove unused parameter used from find_best_gasmix_match()
The last direct user of the used parameter was removed in 16276faa45279817e363367550a6a37c179251f7, the last actual user in e2bbd0ceecff7193bb272430fbebfc4b02dd67c3. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.c')
-rw-r--r--core/equipment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/equipment.c b/core/equipment.c
index 09778dfa1..a0a09d372 100644
--- a/core/equipment.c
+++ b/core/equipment.c
@@ -109,7 +109,7 @@ int gas_volume(const cylinder_t *cyl, pressure_t p)
return lrint(cyl->type.size.mliter * bar_to_atm(bar) / z_factor);
}
-int find_best_gasmix_match(struct gasmix mix, const cylinder_t array[], unsigned int used)
+int find_best_gasmix_match(struct gasmix mix, const cylinder_t array[])
{
int i;
int best = -1, score = INT_MAX;
@@ -118,8 +118,6 @@ int find_best_gasmix_match(struct gasmix mix, const cylinder_t array[], unsigned
const cylinder_t *match;
int distance;
- if (used & (1 << i))
- continue;
match = array + i;
if (cylinder_nodata(match))
continue;