diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-12-09 12:31:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-12-14 00:25:07 +0800 |
commit | a597929c1023748d9e13a1603121a9851bd51b0d (patch) | |
tree | b13b4a710a9c7c193fb26e31e1bee684150ca053 /core | |
parent | 0a3d757aaba265756ed524d0f566c17761cecd18 (diff) | |
download | subsurface-a597929c1023748d9e13a1603121a9851bd51b0d.tar.gz |
Cleanup: remove remove_autogen_trips() function
In f427226b3b605523bc8285dbdaaa7f6993af6e6a 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>
Diffstat (limited to 'core')
-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 */ |