mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove unused parameter was_autogen
In commit 6bf4120dbb
the trip-flags
were replaced by a simple boolean. This made the was_autogen
parameter to the remove_dive_from_trip() and unregister_dive_from_trip()
functions unused. Remove these parameters.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
95736506fe
commit
99d29a7838
4 changed files with 13 additions and 12 deletions
|
@ -65,7 +65,7 @@ DiveToAdd DiveListBase::removeDive(struct dive *d)
|
|||
|
||||
// remove dive from trip - if this is the last dive in the trip
|
||||
// remove the whole trip.
|
||||
res.trip = unregister_dive_from_trip(d, false);
|
||||
res.trip = unregister_dive_from_trip(d);
|
||||
if (res.trip && res.trip->dives.nr == 0) {
|
||||
unregister_trip(res.trip); // Remove trip from backend
|
||||
res.tripToAdd.reset(res.trip); // Take ownership of trip
|
||||
|
@ -226,7 +226,7 @@ static OwningTripPtr moveDiveToTrip(DiveToTrip &diveToTrip)
|
|||
OwningTripPtr res;
|
||||
|
||||
// Remove dive from trip - if this is the last dive in the trip, remove the whole trip.
|
||||
dive_trip *trip = unregister_dive_from_trip(diveToTrip.dive, false);
|
||||
dive_trip *trip = unregister_dive_from_trip(diveToTrip.dive);
|
||||
if (trip && trip->dives.nr == 0) {
|
||||
unregister_trip(trip); // Remove trip from backend
|
||||
res.reset(trip);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue