mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove count_divecomputers() function
There is a number_of_computers() function which does the same thing with two exceptions: 1) checks for null-dive 2) returns an unsigned int Replace calls to count_divecomputers() by calls to number_of_computers(). In one case, the return type makes a different - add a cast to int there. Ultimately, we should probably change the dc_number to signed int throughout the code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0424ee8996
commit
048cdcaa31
4 changed files with 4 additions and 16 deletions
|
@ -248,7 +248,6 @@ extern struct divecomputer *get_dive_dc(struct dive *dive, int nr);
|
|||
extern timestamp_t dive_endtime(const struct dive *dive);
|
||||
|
||||
extern struct dive *make_first_dc(const struct dive *d, int dc_number);
|
||||
extern int count_divecomputers(const struct dive *d);
|
||||
extern struct dive *clone_delete_divecomputer(const struct dive *d, int dc_number);
|
||||
void split_divecomputer(const struct dive *src, int num, struct dive **out1, struct dive **out2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue