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
|
@ -300,7 +300,8 @@ void picture_end(struct parser_state *state)
|
|||
|
||||
cylinder_t *cylinder_start(struct parser_state *state)
|
||||
{
|
||||
return add_empty_cylinder(&state->cur_dive->cylinders);
|
||||
state->cur_dive->cylinders.emplace_back();
|
||||
return &state->cur_dive->cylinders.back();
|
||||
}
|
||||
|
||||
void cylinder_end(struct parser_state *state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue