diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-02 13:51:45 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-02 10:26:29 -0800 |
commit | 966cd873c524423400b770fdf9836e2f7447a069 (patch) | |
tree | edafca6199138fd71b2438204294498039b17200 | |
parent | 18acb85a01a932cbbf8da79cf3933a2e72c09564 (diff) | |
download | subsurface-966cd873c524423400b770fdf9836e2f7447a069.tar.gz |
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>
-rw-r--r-- | core/units.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/units.c b/core/units.c index 29d8e6673..df6ca5f07 100644 --- a/core/units.c +++ b/core/units.c @@ -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; |