mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Simplify the bailout detection functions.
Function peek_next_divemodechange() is redundant if get_next_divemodechange() has one additional parameter. Calls to get_next_divemodechange() were updated in divelist.c, plannernotes.c and profile.c. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
This commit is contained in:
parent
c1d04ef7dc
commit
0e08c0870a
5 changed files with 17 additions and 46 deletions
|
|
@ -362,7 +362,7 @@ struct dive_components {
|
|||
unsigned int weights : 1;
|
||||
};
|
||||
|
||||
extern struct event *get_next_divemodechange(struct event **evd);
|
||||
extern struct event *get_next_divemodechange(struct event **evd, bool update_pointer);
|
||||
extern enum dive_comp_type get_divemode_at_time(struct divecomputer *dc, int dtime, struct event **ev_dmc);
|
||||
|
||||
/* picture list and methods related to dive picture handling */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue