summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-02 13:51:45 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-02 10:26:29 -0800
commit966cd873c524423400b770fdf9836e2f7447a069 (patch)
treeedafca6199138fd71b2438204294498039b17200
parent18acb85a01a932cbbf8da79cf3933a2e72c09564 (diff)
downloadsubsurface-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.c4
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;