diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-24 17:53:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-24 17:53:31 +0200 |
commit | f4b19c002aa3ef8054729f7e61254232d575b7a6 (patch) | |
tree | 79e8aed1c7081470a634430b17b2660568c3e4e6 /src/lib/merchant_api_delete_product.c | |
parent | 0b57eac8f3b99941a11f11f35feac1926cd21d31 (diff) | |
download | merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.tar.gz merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.tar.bz2 merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.zip |
toward stesting
Diffstat (limited to 'src/lib/merchant_api_delete_product.c')
-rw-r--r-- | src/lib/merchant_api_delete_product.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/merchant_api_delete_product.c b/src/lib/merchant_api_delete_product.c index e00f0a34..e406581c 100644 --- a/src/lib/merchant_api_delete_product.c +++ b/src/lib/merchant_api_delete_product.c @@ -121,8 +121,6 @@ handle_delete_product_finished (void *cls, * * @param ctx the context * @param backend_url HTTP base URL for the backend - * @param instance_id instance to query about its products, - * NULL to query the default instance * @param product_id identifier of the product * @param cb function to call with the backend's deletion status * @param cb_cls closure for @a cb @@ -132,7 +130,6 @@ struct TALER_MERCHANT_ProductDeleteHandle * TALER_MERCHANT_product_delete ( struct GNUNET_CURL_Context *ctx, const char *backend_url, - const char *instance_id, const char *product_id, TALER_MERCHANT_ProductDeleteCallback cb, void *cb_cls) @@ -146,15 +143,9 @@ TALER_MERCHANT_product_delete ( { char *path; - if (NULL == instance_id) - GNUNET_asprintf (&path, - "products/%s", - product_id); - else - GNUNET_asprintf (&path, - "instances/%s/products/%s", - instance_id, - product_id); + GNUNET_asprintf (&path, + "products/%s", + product_id); pdh->url = TALER_url_join (backend_url, path, NULL); |