From 5302ebd951f8f6f8cd86ee7d4ca09e2c4facba47 Mon Sep 17 00:00:00 2001 From: Daniel Trujillo Date: Fri, 24 Jun 2016 08:54:13 +0200 Subject: [PATCH] Revert "Add other-than-selected currency support to format_currency_2dp" This reverts commit 98d5b332bd9958296218a66e2eb7ef61600c8086. --- src/localisation/localisation.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/localisation/localisation.c b/src/localisation/localisation.c index 18113cf7bb..7d95ea4822 100644 --- a/src/localisation/localisation.c +++ b/src/localisation/localisation.c @@ -476,9 +476,9 @@ void format_currency(char **dest, long long value) } } -void format_any_currency_2dp(char **dest, long long value, int currencyIndex) +void format_currency_2dp(char **dest, long long value) { - const currency_descriptor *currencyDesc = &CurrencyDescriptors[currencyIndex]; + const currency_descriptor *currencyDesc = &CurrencyDescriptors[gConfigGeneral.currency_format]; int rate = currencyDesc->rate; value *= rate; @@ -517,11 +517,6 @@ void format_any_currency_2dp(char **dest, long long value, int currencyIndex) } } -void format_currency_2dp(char **dest, long long value) -{ - format_any_currency_2dp(dest, value, gConfigGeneral.currency_format); -} - void format_date(char **dest, uint16 value) { uint16 args[] = { date_get_month(value), date_get_year(value) + 1 };