mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove add_empty_cylinder()
This one-liner wasn't really doing anything and there was only one user of the return value. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9bb2255ba8
commit
498302dcc6
4 changed files with 4 additions and 10 deletions
|
|
@ -363,12 +363,6 @@ void copy_cylinder_types(const struct dive *s, struct dive *d)
|
|||
d->cylinders.push_back(s->cylinders[i]);
|
||||
}
|
||||
|
||||
cylinder_t *add_empty_cylinder(struct cylinder_table *t)
|
||||
{
|
||||
t->emplace_back();
|
||||
return &t->back();
|
||||
}
|
||||
|
||||
/* if a default cylinder is set, use that */
|
||||
void fill_default_cylinder(const struct dive *dive, cylinder_t *cyl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue