mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:33:23 +00:00
Cleanup: remove remove_autogen_trips() function
In f427226b3b
autogrouping / removal
of autogrouping was moved into the undo-machinery. This made the
remove_autogen_trips() function caller-less. Remove it.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0a3d757aab
commit
a597929c10
2 changed files with 0 additions and 15 deletions
|
@ -37,7 +37,6 @@
|
|||
* void deselect_dive(struct dive *dive)
|
||||
* void mark_divelist_changed(int changed)
|
||||
* int unsaved_changes()
|
||||
* void remove_autogen_trips()
|
||||
* bool dive_less_than(const struct dive *a, const struct dive *b)
|
||||
* bool trip_less_than(const struct dive_trip *a, const struct dive_trip *b)
|
||||
* bool dive_or_trip_less_than(struct dive_or_trip a, struct dive_or_trip b)
|
||||
|
@ -1368,19 +1367,6 @@ int unsaved_changes()
|
|||
return dive_list_changed;
|
||||
}
|
||||
|
||||
void remove_autogen_trips()
|
||||
{
|
||||
int i;
|
||||
struct dive *dive;
|
||||
|
||||
for_each_dive(i, dive) {
|
||||
dive_trip_t *trip = dive->divetrip;
|
||||
|
||||
if (trip && trip->autogen)
|
||||
remove_dive_from_trip(dive, true);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* When adding dives to the dive table, we try to renumber
|
||||
* the new dives based on any old dives in the dive table.
|
||||
|
|
|
@ -14,7 +14,6 @@ struct dive;
|
|||
extern void update_cylinder_related_info(struct dive *);
|
||||
extern void mark_divelist_changed(bool);
|
||||
extern int unsaved_changes(void);
|
||||
extern void remove_autogen_trips(void);
|
||||
extern int init_decompression(struct deco_state *ds, struct dive *dive);
|
||||
|
||||
/* divelist core logic functions */
|
||||
|
|
Loading…
Add table
Reference in a new issue