mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove unused parameter used from find_best_gasmix_match()
The last direct user of the used parameter was removed in16276faa45
, the last actual user ine2bbd0ceec
. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
219c230506
commit
3e88bd686f
5 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue