summaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-07-19 18:47:32 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-23 10:54:51 +0900
commitb78e6525eb589c6bd654f1a9f01674fea94a9985 (patch)
treece8dae1590e077afe84b457ed3021840256b48bc /core/planner.c
parent8b35defa48514e2695d1fc8a26aee0a30d2dd1b9 (diff)
downloadsubsurface-b78e6525eb589c6bd654f1a9f01674fea94a9985.tar.gz
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 <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c22
1 files changed, 0 insertions, 22 deletions
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)