From b78e6525eb589c6bd654f1a9f01674fea94a9985 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Tue, 19 Jul 2016 18:47:32 +1000 Subject: Remove unnecessary DivePlannerPointsModel functions and variables Commit b1ed04a means that DivePlannerPointsModel::rememberTanks() and related functions and variables are no longer required Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- core/planner.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'core/planner.c') diff --git a/core/planner.c b/core/planner.c index 8ce1e29bd..8a2e1d649 100644 --- a/core/planner.c +++ b/core/planner.c @@ -219,24 +219,6 @@ void fill_default_cylinder(cylinder_t *cyl) cyl->depth = gas_mod(&cyl->gasmix, pO2, &displayed_dive, 1); } -/* make sure that the gas we are switching to is represented in our - * list of cylinders */ -static int verify_gas_exists(struct gasmix mix_in) -{ - int i; - cylinder_t *cyl; - - for (i = 0; i < MAX_CYLINDERS; i++) { - cyl = displayed_dive.cylinder + i; - if (cylinder_nodata(cyl)) - continue; - if (gasmix_distance(&cyl->gasmix, &mix_in) < 100) - return i; - } - fprintf(stderr, "this gas %s should have been on the cylinder list\nThings will fail now\n", gasname(&mix_in)); - return -1; -} - /* calculate the new end pressure of the cylinder, based on its current end pressure and the * latest segment. */ static void update_cylinder_pressure(struct dive *d, int old_depth, int new_depth, int duration, int sac, cylinder_t *cyl, bool in_deco) @@ -370,10 +352,6 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas) save_dive(stdout, &displayed_dive); #endif return; - -gas_error_exit: - report_error(translate("gettextFromC", "Too many gas mixes")); - return; } void free_dps(struct diveplan *diveplan) -- cgit v1.2.3-70-g09d2