diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-16 21:02:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-16 21:02:18 +0100 |
commit | 3d9ad86dfb34121c88a4446b216c74c14517722f (patch) | |
tree | 23a3050c83425aa4c4fd776dfe1a25f95ea9236a /src/bank-lib/bank_api_common.c | |
parent | 1032cdea0f2c917f695231271affebbd553ae839 (diff) | |
download | exchange-3d9ad86dfb34121c88a4446b216c74c14517722f.tar.xz |
remove duplicated, wrong ec logic in bank-lib
Diffstat (limited to 'src/bank-lib/bank_api_common.c')
-rw-r--r-- | src/bank-lib/bank_api_common.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/bank-lib/bank_api_common.c b/src/bank-lib/bank_api_common.c index d9df5b39f..5e7ce6876 100644 --- a/src/bank-lib/bank_api_common.c +++ b/src/bank-lib/bank_api_common.c @@ -97,34 +97,4 @@ TALER_BANK_path_to_url_ (const char *u, } -/** - * Parse error code given in @a json. - * - * @param json the json to parse. - * - * @return error code, or #TALER_EC_INVALID if not found. - */ -enum TALER_ErrorCode -TALER_BANK_parse_ec_ (const json_t *json) -{ - uint32_t ec; - - struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_uint32 ("ec", - &ec), - GNUNET_JSON_spec_end () - }; - - if (GNUNET_OK != - GNUNET_JSON_parse (json, - spec, - NULL, NULL)) - { - GNUNET_break_op (0); - return TALER_EC_INVALID; - } - return (enum TALER_ErrorCode) ec; -} - - /* end of bank_api_common.c */ |