mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue