From 966cd873c524423400b770fdf9836e2f7447a069 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 2 Jan 2021 13:51:45 +0100 Subject: 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 --- core/units.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core') 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; -- cgit v1.2.3-70-g09d2