[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: remove is_currency_name_leading
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: remove is_currency_name_leading |
Date: |
Wed, 15 Nov 2023 23:59:59 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 0d8f1fa2 remove is_currency_name_leading
0d8f1fa2 is described below
commit 0d8f1fa2b4998d6d44164512c8aeb1e861ab0a98
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 15 23:59:55 2023 +0100
remove is_currency_name_leading
---
src/include/taler_util.h | 6 ------
src/json/json_helper.c | 2 --
src/util/config.c | 7 -------
src/util/currencies.conf | 9 ---------
4 files changed, 24 deletions(-)
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 1ca019b9..19dc84fc 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -241,12 +241,6 @@ struct TALER_CurrencySpecification
*/
unsigned int num_fractional_trailing_zero_digits;
- /**
- * True to put the currency symbol before the number,
- * false to put the currency symbol after the number.
- */
- bool is_currency_name_leading;
-
/**
* Mapping of powers of 10 to alternative currency names or symbols.
* Keys are the decimal powers, values the currency symbol to use.
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 71291a9e..fd2a8d27 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -179,8 +179,6 @@ parse_cspec (void *cls,
&fnd),
GNUNET_JSON_spec_uint32 ("num_fractional_trailing_zero_digits",
&ftzd),
- GNUNET_JSON_spec_bool ("is_currency_name_leading",
- &r_cspec->is_currency_name_leading),
GNUNET_JSON_spec_object_const ("alt_unit_names",
&map),
GNUNET_JSON_spec_end ()
diff --git a/src/util/config.c b/src/util/config.c
index e22207f7..20567043 100644
--- a/src/util/config.c
+++ b/src/util/config.c
@@ -233,11 +233,6 @@ parse_currencies_cb (void *cls,
cpc->len_cspecs * 2 + 4);
}
cspec = &cpc->cspecs[cpc->num_currencies++];
- cspec->is_currency_name_leading
- = GNUNET_CONFIGURATION_get_value_yesno (cpc->cfg,
- section,
- "NAME_LEADING");
-
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cpc->cfg,
section,
@@ -483,8 +478,6 @@ TALER_CONFIG_currency_specs_to_json (const struct
cspec->num_fractional_normal_digits),
GNUNET_JSON_pack_uint64 ("num_fractional_trailing_zero_digits",
cspec->num_fractional_trailing_zero_digits),
- GNUNET_JSON_pack_bool ("is_currency_name_leading",
- cspec->is_currency_name_leading),
GNUNET_JSON_pack_object_incref ("alt_unit_names",
cspec->map_alt_unit_names));
}
diff --git a/src/util/currencies.conf b/src/util/currencies.conf
index 539804fc..5f4fcbe6 100644
--- a/src/util/currencies.conf
+++ b/src/util/currencies.conf
@@ -5,7 +5,6 @@ code = "EUR"
fractional_input_digits = 2
fractional_normal_digits = 2
fractional_trailing_zero_digits = 2
-is_currency_name_leading = NO
alt_unit_names = {"0":"€"}
[currency-swiss-francs]
@@ -15,7 +14,6 @@ code = "CHF"
fractional_input_digits = 2
fractional_normal_digits = 2
fractional_trailing_zero_digits = 2
-is_currency_name_leading = YES
alt_unit_names = {"0":"Fr.","-2":"Rp."}
[currency-forint]
@@ -25,7 +23,6 @@ code = "HUF"
fractional_input_digits = 0
fractional_normal_digits = 0
fractional_trailing_zero_digits = 0
-is_currency_name_leading = NO
alt_unit_names = {"0":"Ft"}
[currency-us-dollar]
@@ -35,7 +32,6 @@ code = "USD"
fractional_input_digits = 2
fractional_normal_digits = 2
fractional_trailing_zero_digits = 2
-is_currency_name_leading = YES
alt_unit_names = {"0":"$"}
[currency-kudos]
@@ -45,7 +41,6 @@ code = "KUDOS"
fractional_input_digits = 2
fractional_normal_digits = 2
fractional_trailing_zero_digits = 2
-is_currency_name_leading = NO
alt_unit_names = {"0":"ク"}
[currency-testkudos]
@@ -55,7 +50,6 @@ code = "TESTKUDOS"
fractional_input_digits = 2
fractional_normal_digits = 2
fractional_trailing_zero_digits = 2
-is_currency_name_leading = NO
alt_unit_names = {"0":"テ","3":"kテ","-3":"mテ"}
[currency-japanese-yen]
@@ -65,7 +59,6 @@ code = "JPY"
fractional_input_digits = 2
fractional_normal_digits = 0
fractional_trailing_zero_digits = 2
-is_currency_name_leading = YES
alt_unit_names = {"0":"¥"}
[currency-bitcoin-mainnet]
@@ -75,7 +68,6 @@ code = "BITCOINBTC"
fractional_input_digits = 8
fractional_normal_digits = 3
fractional_trailing_zero_digits = 0
-is_currency_name_leading = NO
alt_unit_names = {"0":"BTC","-3":"mBTC"}
[currency-ethereum]
@@ -85,5 +77,4 @@ code = "EthereumWAI"
fractional_input_digits = 0
fractional_normal_digits = 0
fractional_trailing_zero_digits = 0
-is_currency_name_leading = NO
alt_unit_names =
{"0":"WAI","3":"KWAI","6":"MWAI","9":"GWAI","12":"Szabo","15":"Finney","18":"Ether","21":"KEther","24":"MEther"}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: remove is_currency_name_leading,
gnunet <=