diff options
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/dive.c b/core/dive.c index c1cc2e11a..1fe3eccf4 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1212,7 +1212,6 @@ static void match_standard_cylinder(cylinder_type_t *type) type->description = p; } - /* * There are two ways to give cylinder size information: * - total amount of gas in cuft (depends on working pressure and physical size) @@ -1225,8 +1224,6 @@ static void match_standard_cylinder(cylinder_type_t *type) */ static void sanitize_cylinder_type(cylinder_type_t *type) { - double volume_of_air, volume; - /* If we have no working pressure, it had *better* be just a physical size! */ if (!type->workingpressure.mbar) return; @@ -1235,15 +1232,6 @@ static void sanitize_cylinder_type(cylinder_type_t *type) if (!type->size.mliter) return; - if (xml_parsing_units.volume == CUFT) { - double bar = type->workingpressure.mbar / 1000.0; - /* confusing - we don't really start from ml but millicuft !*/ - volume_of_air = cuft_to_l(type->size.mliter); - /* milliliters at 1 atm: not corrected for compressibility! */ - volume = volume_of_air / bar_to_atm(bar); - type->size.mliter = lrint(volume); - } - /* Ok, we have both size and pressure: try to match a description */ match_standard_cylinder(type); } |