diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-11 22:56:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-13 11:49:59 -0800 |
commit | 11e576ffbf6ddc117d13fd8b02722948efd9ce54 (patch) | |
tree | a87e3fddb36aed79e966652cb92f42ca7372eb57 /core | |
parent | a55c7ff0793c119e8472cecebfe8c059f55e74f8 (diff) | |
download | subsurface-11e576ffbf6ddc117d13fd8b02722948efd9ce54.tar.gz |
core: remove the "no-name" tank info
There was a tank info with an empty name. According to a comment,
this is needed for the "no cylinder" case. However, we now support
empty cylinder tables, so this is not needed anymore. Therefore,
remove it.
Make sure that the user can still enter the empty name, just in
case. But don't save the size and pressure in that case.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/equipment.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/equipment.c b/core/equipment.c index 0b40b30c0..253ef2086 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -251,9 +251,6 @@ void reset_tank_info_table(struct tank_info_table *table) { clear_tank_info_table(table); - /* Need an empty entry for the no-cylinder case */ - add_tank_info_metric(table, "", 0, 0); - /* Size-only metric cylinders */ add_tank_info_metric(table, "10.0ℓ", 10000, 0); add_tank_info_metric(table, "11.1ℓ", 11100, 0); |