From 4e89a6020ec02fdc7a7af9b59ef918cb610f5a76 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 18 Aug 2015 09:13:39 +0200 Subject: Get rid of is_ok_vpmb Since a8ce8, that made deco_allowed_depth work for VPM-B as well, this function became obsolete but was reintroduced by one of Jan's latest patches. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- deco.c | 15 --------------- dive.h | 1 - planner.c | 4 ---- 3 files changed, 20 deletions(-) diff --git a/deco.c b/deco.c index 15c61d238..3c7b9c1d7 100644 --- a/deco.c +++ b/deco.c @@ -280,21 +280,6 @@ double calc_surface_phase(double surface_pressure, double he_pressure, double n2 return 0; } -bool is_vpmb_ok(double pressure) -{ - int ci; - double gradient; - double gas_tension; - - for (ci = 0; ci < 16; ++ci) { - gas_tension = tissue_n2_sat[ci] + tissue_he_sat[ci] + vpmb_config.other_gases_pressure; - gradient = gas_tension - pressure; - if (gradient > total_gradient[ci]) - return false; - } - return true; -} - void vpmb_start_gradient() { int ci; diff --git a/dive.h b/dive.h index d5681f163..ee3f63701 100644 --- a/dive.h +++ b/dive.h @@ -801,7 +801,6 @@ extern double restore_deco_state(char *data); extern void nuclear_regeneration(double time); extern void vpmb_start_gradient(); extern void vpmb_next_gradient(double deco_time, double surface_pressure); -extern bool is_vpmb_ok(double pressure); extern void boyles_law(double first_stop_pressure, double next_stop_pressure); /* this should be converted to use our types */ diff --git a/planner.c b/planner.c index eb7c35bcd..c5f886c7b 100644 --- a/planner.c +++ b/planner.c @@ -898,10 +898,6 @@ bool trial_ascent(int trial_depth, int stoplevel, int avg_depth, int bottom_time clear_to_ascend = false; break; } - if (prefs.deco_mode == VPMB && (!is_vpmb_ok(depth_to_mbar(trial_depth - deltad, &displayed_dive) / 1000.0))){ - clear_to_ascend = false; - break; - } trial_depth -= deltad; } restore_deco_state(trial_cache); -- cgit v1.2.3-70-g09d2