diff options
-rw-r--r-- | core/divelist.c | 14 | ||||
-rw-r--r-- | core/divelist.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/core/divelist.c b/core/divelist.c index f4c9762ab..ed4d8544e 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -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. diff --git a/core/divelist.h b/core/divelist.h index 0f8a6138c..a8478d8d5 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -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 */ |