diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-07 08:51:26 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-07 08:51:26 -0800 |
commit | 989cf37fcf0453b72f3d542f202cf532bf1532db (patch) | |
tree | 727a8e1e0d9287b5f1024d66da3c967b5254e5d9 /planner.c | |
parent | 1b0ddfbbe218e25001512a18e5cc9224aabf8698 (diff) | |
download | subsurface-989cf37fcf0453b72f3d542f202cf532bf1532db.tar.gz |
Remove the now obsolete hard coded test_plan
This was just a crutch to get something out there for people to play with.
With the ability to input a plan in place this is now obsolete.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -285,21 +285,3 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep) report_dives(FALSE, FALSE); select_last_dive(); } - -void test_planner() -{ - struct dive *dive = NULL; - struct diveplan diveplan = {}; - char *cache_data; - int end_of_last_dive = dive_table.dives[dive_table.nr - 1]->when + dive_table.dives[dive_table.nr -1]->duration.seconds; - diveplan.when = end_of_last_dive + 50 * 3600; /* don't take previous dives into account for deco calculation */ - diveplan.surface_pressure = 1013; - plan_add_segment(&diveplan, 120, 36000, 209, 0); - plan_add_segment(&diveplan, 1800, 36000, 209, 0); - plan_add_segment(&diveplan, 59, 27000, 209, 0); - plan_add_segment(&diveplan, 1, 27000, 400, 0); - - plan(&diveplan, &cache_data, &dive); - /* we are not rerunning the plan, so free the cache right away */ - free(cache_data); -} |