mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: make analyze_plot_info local to profile.c
No external caller of this function exists. Moreover, turn the return type to void, as it only returned the passed-in plot_info and no caller used that. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
21e2488d2d
commit
c8334ad11b
2 changed files with 1 additions and 4 deletions
|
@ -256,7 +256,7 @@ static velocity_t velocity(int speed)
|
|||
return v;
|
||||
}
|
||||
|
||||
struct plot_info *analyze_plot_info(struct plot_info *pi)
|
||||
static void analyze_plot_info(struct plot_info *pi)
|
||||
{
|
||||
int i;
|
||||
int nr = pi->nr;
|
||||
|
@ -292,8 +292,6 @@ struct plot_info *analyze_plot_info(struct plot_info *pi)
|
|||
/* get minmax data */
|
||||
for (i = 0; i < nr; i++)
|
||||
analyze_plot_info_minmax(pi, i);
|
||||
|
||||
return pi;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -86,7 +86,6 @@ struct ev_select {
|
|||
};
|
||||
|
||||
extern void compare_samples(struct plot_info *p1, int idx1, int idx2, char *buf, int bufsize, bool sum);
|
||||
extern struct plot_info *analyze_plot_info(struct plot_info *pi);
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue