mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
cleanup: remove unused function set_dive_nr_for_current_dive()
Last caller was removed in a6fa6cdb41
.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6a2b7cc924
commit
f3221c6965
2 changed files with 0 additions and 10 deletions
|
@ -1314,15 +1314,6 @@ int get_dive_nr_at_idx(int idx)
|
||||||
return last_dive->number ? last_dive->number + 1 : 0;
|
return last_dive->number ? last_dive->number + 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_dive_nr_for_current_dive()
|
|
||||||
{
|
|
||||||
int selected_dive = get_divenr(current_dive);
|
|
||||||
if (dive_table.nr == 1)
|
|
||||||
current_dive->number = 1;
|
|
||||||
else if (selected_dive == dive_table.nr - 1 && get_dive(dive_table.nr - 2)->number)
|
|
||||||
current_dive->number = get_dive(dive_table.nr - 2)->number + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int min_datafile_version;
|
static int min_datafile_version;
|
||||||
|
|
||||||
int get_min_datafile_version()
|
int get_min_datafile_version()
|
||||||
|
|
|
@ -53,7 +53,6 @@ extern void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2l
|
||||||
extern int get_divenr(const struct dive *dive);
|
extern int get_divenr(const struct dive *dive);
|
||||||
extern int remove_dive(const struct dive *dive, struct dive_table *table);
|
extern int remove_dive(const struct dive *dive, struct dive_table *table);
|
||||||
extern int get_dive_nr_at_idx(int idx);
|
extern int get_dive_nr_at_idx(int idx);
|
||||||
extern void set_dive_nr_for_current_dive();
|
|
||||||
extern timestamp_t get_surface_interval(timestamp_t when);
|
extern timestamp_t get_surface_interval(timestamp_t when);
|
||||||
extern void delete_dive_from_table(struct dive_table *table, int idx);
|
extern void delete_dive_from_table(struct dive_table *table, int idx);
|
||||||
extern struct dive *find_next_visible_dive(timestamp_t when);
|
extern struct dive *find_next_visible_dive(timestamp_t when);
|
||||||
|
|
Loading…
Reference in a new issue