[PATCH 4/5] Remove unnecessary get_gasidx call

Anton Lundin glance at acc.umu.se
Thu Jul 10 13:11:45 PDT 2014


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 planner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/planner.c b/planner.c
index 16152b1..785db4d 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;
-- 
1.9.1



More information about the subsurface mailing list