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:
Berthold Stoeger 2019-03-10 20:04:47 +01:00 committed by Dirk Hohndel
parent 8dcc33d8ab
commit dc9427d16a
5 changed files with 11 additions and 12 deletions

View file

@ -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;
}