diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-08 22:37:24 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 94a57d9a1d9b1d1eeb89b1ccbba27f4b677ff6ed (patch) | |
tree | 323a681ef6aab02e966d79b8d1cd28fbb31194da /core | |
parent | 45ee3544d10aa5c85cb5a01998d9f92288af745e (diff) | |
download | subsurface-94a57d9a1d9b1d1eeb89b1ccbba27f4b677ff6ed.tar.gz |
cleanup: make calculate_deco_information() of static linkage
This function was not used outside of profile.c
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/profile.c | 3 | ||||
-rw-r--r-- | core/profile.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/profile.c b/core/profile.c index 48be68309..88753689e 100644 --- a/core/profile.c +++ b/core/profile.c @@ -991,7 +991,8 @@ static void calculate_ndl_tts(struct deco_state *ds, const struct dive *dive, st /* Let's try to do some deco calculations. */ -void calculate_deco_information(struct deco_state *ds, const struct deco_state *planner_ds, const struct dive *dive, const struct divecomputer *dc, struct plot_info *pi, bool print_mode) +static void calculate_deco_information(struct deco_state *ds, const struct deco_state *planner_ds, const struct dive *dive, + const struct divecomputer *dc, struct plot_info *pi, bool print_mode) { int i, count_iteration = 0; double surface_pressure = (dc->surface_pressure.mbar ? dc->surface_pressure.mbar : get_surface_pressure_in_mbar(dive, true)) / 1000.0; diff --git a/core/profile.h b/core/profile.h index 7158861bd..e8d899f97 100644 --- a/core/profile.h +++ b/core/profile.h @@ -83,7 +83,6 @@ struct plot_data { extern void compare_samples(struct plot_info *p1, int idx1, int idx2, char *buf, int bufsize, bool sum); extern void init_plot_info(struct plot_info *pi); extern void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast, const struct deco_state *planner_ds); -extern void calculate_deco_information(struct deco_state *ds, const struct deco_state *planner_de, const struct dive *dive, const struct divecomputer *dc, struct plot_info *pi, bool print_mode); extern int get_plot_details_new(const struct plot_info *pi, int time, struct membuffer *); extern void free_plot_info_data(struct plot_info *pi); |