aboutsummaryrefslogtreecommitdiffstats
path: root/core/profile.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-06 15:34:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-06 11:23:35 -0700
commitae60fdf815d1febe36b5f43642a28afbaf84362b (patch)
tree20e33d82b358bab3fb582969c455e188683c1cf4 /core/profile.h
parent69be1e23f231081e6bad98903c10782faf5104a7 (diff)
downloadsubsurface-ae60fdf815d1febe36b5f43642a28afbaf84362b.tar.gz
Cleanup: call calculate_max_limits_new() in create_plot_info_new()
All callers of create_plot_info_new() called calculate_max_limits_new() a line before. Thus, simply call the latter in the former. This allows us to automatically free the plot data in create_plot_info_new(). The old code overwrote the corresponding field with NULL. As a side-effect, this removes a bogus static variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.h')
-rw-r--r--core/profile.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/profile.h b/core/profile.h
index 125e349a8..d9a0ed731 100644
--- a/core/profile.h
+++ b/core/profile.h
@@ -73,7 +73,6 @@ struct ev_select {
bool plot_ev;
};
-struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *given_dc);
void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum);
struct plot_info *analyze_plot_info(struct plot_info *pi);
void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast, struct deco_state *planner_ds);