From dd423bffb9f248735311ab639639c7b1996d759c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 1 Sep 2019 17:58:59 +0200 Subject: Cleanup: remove global disclaimer variable That was used to store the disclaimer of the last plan. The functionality was disfunctional for a long time, therefore remove the variable. Signed-off-by: Berthold Stoeger --- core/planner.c | 1 - core/planner.h | 1 - 2 files changed, 2 deletions(-) (limited to 'core') diff --git a/core/planner.c b/core/planner.c index 3fef02248..b7bc56eab 100644 --- a/core/planner.c +++ b/core/planner.c @@ -35,7 +35,6 @@ static int decostoplevels_imperial[] = { 0, 3048, 6096, 9144, 12192, 15240, 1828 182880, 193040, 203200, 223520, 243840, 264160, 284480, 304800, 325120, 345440, 365760, 386080 }; -char *disclaimer; #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan) { diff --git a/core/planner.h b/core/planner.h index 4d25c49eb..06600054d 100644 --- a/core/planner.h +++ b/core/planner.h @@ -56,7 +56,6 @@ extern char *get_planner_disclaimer_formatted(); extern void free_dps(struct diveplan *diveplan); extern struct dive *planned_dive; extern char *cache_data; -extern char *disclaimer; struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration, int depth, int cylinderid, int po2, bool entered, enum divemode_t divemode); struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po2); -- cgit v1.2.3-70-g09d2