diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 14:58:02 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 15:06:48 -0500 |
commit | c463087ab0e74154cc95183031dde4f762a5d7d0 (patch) | |
tree | 90c65d8054e9e4bade28efaeeb23255cee70b455 /planner.c | |
parent | 77f9bf06fded941aeff049cf5d3c0c3f2785d011 (diff) | |
download | subsurface-c463087ab0e74154cc95183031dde4f762a5d7d0.tar.gz |
Remove unused function
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
@@ -375,24 +375,6 @@ struct divedatapoint *create_dp(int time_incr, int depth, struct gasmix gasmix, return dp; } -struct divedatapoint *get_nth_dp(struct diveplan *diveplan, int idx) -{ - struct divedatapoint **ldpp, *dp = diveplan->dp; - int i = 0; - struct gasmix air = { }; - ldpp = &diveplan->dp; - - while (dp && i++ < idx) { - ldpp = &dp->next; - dp = dp->next; - } - while (i++ <= idx) { - *ldpp = dp = create_dp(0, 0, air, 0); - ldpp = &((*ldpp)->next); - } - return dp; -} - void add_to_end_of_diveplan(struct diveplan *diveplan, struct divedatapoint *dp) { struct divedatapoint **lastdp = &diveplan->dp; |