mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove split_dive_*() functions
In 302f6adb79
dive-splitting was made
undo-able. To this goal, the dive-splitting functions were split in
two types: Those that operate directly on the divelist and those that
only allocate the dives. The former are not in use anymore, therefore
remove them. Since only the latter remain, remove the "_dont_insert"
appendix of the name.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
10c20babae
commit
662dd823fd
3 changed files with 6 additions and 37 deletions
|
@ -758,8 +758,8 @@ SplitDives::SplitDives(dive *d, duration_t time)
|
|||
// Split the dive
|
||||
dive *new1, *new2;
|
||||
int idx = time.seconds < 0 ?
|
||||
split_dive_dont_insert(d, &new1, &new2) :
|
||||
split_dive_at_time_dont_insert(d, time, &new1, &new2);
|
||||
split_dive(d, &new1, &new2) :
|
||||
split_dive_at_time(d, time, &new1, &new2);
|
||||
|
||||
// If this didn't work, simply return. Empty arrays indicate that nothing is to be done.
|
||||
if (idx < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue