core: move remove_weightsystem() to weightsystem_table

Feel natural in a C++ code base.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-07-02 10:21:14 +02:00 committed by bstoeger
parent b5a4e7eb0b
commit 4cb3db2548
3 changed files with 4 additions and 4 deletions

View file

@ -307,9 +307,9 @@ void remove_cylinder(struct dive *dive, int idx)
dive->cylinders.erase(dive->cylinders.begin() + idx);
}
void remove_weightsystem(struct dive *dive, int idx)
void weightsystem_table::remove(int idx)
{
dive->weightsystems.erase(dive->weightsystems.begin() + idx);
erase(begin() + idx);
}
void weightsystem_table::add(int idx, weightsystem_t ws)