mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove unnecessary get_gasidx call
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a12976086e
commit
94e66dbdd6
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
||||||
continue;
|
continue;
|
||||||
if (dp->time - lasttime < 10 && !(gaschange && dp->next && dp->depth != dp->next->depth))
|
if (dp->time - lasttime < 10 && !(gaschange && dp->next && dp->depth != dp->next->depth))
|
||||||
continue;
|
continue;
|
||||||
gasidx = get_gasidx(dive, &gasmix);
|
|
||||||
len = strlen(buffer);
|
len = strlen(buffer);
|
||||||
if (nextdp && gasmix_distance(&gasmix, &newgasmix))
|
if (nextdp && gasmix_distance(&gasmix, &newgasmix))
|
||||||
gaschange = true;
|
gaschange = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue