From c463087ab0e74154cc95183031dde4f762a5d7d0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Aug 2014 14:58:02 -0500 Subject: Remove unused function Signed-off-by: Dirk Hohndel --- planner.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/planner.c b/planner.c index f986af48b..5bc171afc 100644 --- a/planner.c +++ b/planner.c @@ -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; -- cgit v1.2.3-70-g09d2