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:
parent
18acb85a01
commit
966cd873c5
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user