summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_instances.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_post_instances.c')
-rw-r--r--src/lib/merchant_api_post_instances.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/lib/merchant_api_post_instances.c b/src/lib/merchant_api_post_instances.c
index 77336187..73d36369 100644
--- a/src/lib/merchant_api_post_instances.c
+++ b/src/lib/merchant_api_post_instances.c
@@ -164,8 +164,6 @@ TALER_MERCHANT_instances_post (
struct GNUNET_CURL_Context *ctx,
const char *backend_url,
const char *instance_id,
- unsigned int accounts_length,
- const struct TALER_MERCHANT_AccountConfig accounts[],
const char *name,
enum TALER_KYCLOGIC_KycUserType ut,
const json_t *address,
@@ -178,7 +176,6 @@ TALER_MERCHANT_instances_post (
void *cb_cls)
{
struct TALER_MERCHANT_InstancesPostHandle *iph;
- json_t *jaccounts;
json_t *req_obj;
json_t *auth_obj;
const char *uts;
@@ -217,44 +214,7 @@ TALER_MERCHANT_instances_post (
GNUNET_break (0);
return NULL;
}
- jaccounts = json_array ();
- if (NULL == jaccounts)
- {
- json_decref (auth_obj);
- GNUNET_break (0);
- return NULL;
- }
- for (unsigned int i = 0; i<accounts_length; i++)
- {
- const struct TALER_MERCHANT_AccountConfig *account = &accounts[i];
- json_t *jaccount =
- GNUNET_JSON_PACK (
- GNUNET_JSON_pack_string (
- "payto_uri",
- account->payto_uri),
- GNUNET_JSON_pack_allow_null (
- GNUNET_JSON_pack_string (
- "credit_facade_url",
- account->credit_facade_url)),
- GNUNET_JSON_pack_allow_null (
- GNUNET_JSON_pack_object_incref (
- "credit_facade_credentials",
- account->credit_facade_credentials))
- );
-
- if (0 !=
- json_array_append_new (jaccounts,
- jaccount))
- {
- GNUNET_break (0);
- json_decref (auth_obj);
- json_decref (jaccounts);
- return NULL;
- }
- }
req_obj = GNUNET_JSON_PACK (
- GNUNET_JSON_pack_array_steal ("accounts",
- jaccounts),
GNUNET_JSON_pack_string ("id",
instance_id),
GNUNET_JSON_pack_string ("name",