From 11e576ffbf6ddc117d13fd8b02722948efd9ce54 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 11 Dec 2020 22:56:26 +0100 Subject: 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 --- core/equipment.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'core') 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); -- cgit v1.2.3-70-g09d2