mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: rename unregister_trip() to remove_trip()
For consistency with remove_dive(). Moreover, swap parameter order in remove_dive() so that both functions use the same parameter order. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8dcc33d8ab
commit
dc9427d16a
5 changed files with 11 additions and 12 deletions
|
@ -391,7 +391,7 @@ struct dive_site *unregister_dive_from_dive_site(struct dive *d)
|
|||
struct dive_site *ds = d->dive_site;
|
||||
if (!ds)
|
||||
return NULL;
|
||||
remove_dive(&ds->dives, d);
|
||||
remove_dive(d, &ds->dives);
|
||||
d->dive_site = NULL;
|
||||
return ds;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue