From 193513a61fc7fcfb31c1cb969f7fe05452abd67c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 9 Jan 2021 17:36:48 +0100 Subject: profile: pass dive to plot function of profile-items Instead of accessing the global displayed_dive variable, pass the dive to the various profile items. This is a step in making the profile code reentrant. This removes the last user of the displayed_dc macro, which can now be removed. Signed-off-by: Berthold Stoeger --- core/dive.h | 1 - 1 file changed, 1 deletion(-) (limited to 'core') diff --git a/core/dive.h b/core/dive.h index 5bd5989d7..9c847ee90 100644 --- a/core/dive.h +++ b/core/dive.h @@ -113,7 +113,6 @@ extern struct dive displayed_dive; extern unsigned int dc_number; extern struct dive *current_dive; #define current_dc (get_dive_dc(current_dive, dc_number)) -#define displayed_dc (get_dive_dc(&displayed_dive, dc_number)) extern struct dive *get_dive(int nr); extern struct dive *get_dive_from_table(int nr, const struct dive_table *dt); -- cgit v1.2.3-70-g09d2