cleanup: remove support for PASCAL in get_pressure_units()

The user preferences can never end up with PASCAL pressure
units. The only place that uses these units is the XML parser.
Therefore, remove the PASCAL case in get_pressure_units().
This will remove an unused translation string.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-02 13:51:45 +01:00 committed by Dirk Hohndel
parent 18acb85a01
commit 966cd873c5

View file

@ -9,10 +9,6 @@ int get_pressure_units(int mb, const char **units)
const struct units *units_p = get_units();
switch (units_p->pressure) {
case PASCALS:
pressure = mb * 100;
unit = translate("gettextFromC", "pascal");
break;
case BAR:
default:
pressure = (mb + 500) / 1000;