summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-10 22:11:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 13:26:48 -0700
commit94e66dbdd6cf5120b7e139909bc2da93a7ef2934 (patch)
tree0e521fb601bc61eafb299f599d71737ef9c73449 /planner.c
parenta12976086e6be3f767a223df0504262cff84996b (diff)
downloadsubsurface-94e66dbdd6cf5120b7e139909bc2da93a7ef2934.tar.gz
Remove unnecessary get_gasidx call
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 16152b195..785db4db5 100644
--- a/planner.c
+++ b/planner.c
@@ -575,7 +575,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
continue;
if (dp->time - lasttime < 10 && !(gaschange && dp->next && dp->depth != dp->next->depth))
continue;
- gasidx = get_gasidx(dive, &gasmix);
+
len = strlen(buffer);
if (nextdp && gasmix_distance(&gasmix, &newgasmix))
gaschange = true;