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:
Berthold Stoeger 2024-07-01 21:13:12 +02:00 committed by bstoeger
parent 9bb2255ba8
commit 498302dcc6
4 changed files with 4 additions and 10 deletions

View file

@ -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)