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_get_products.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_get_products.c')
-rw-r--r-- | src/lib/merchant_api_get_products.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/lib/merchant_api_get_products.c b/src/lib/merchant_api_get_products.c index 3c7eae54..86e93cdc 100644 --- a/src/lib/merchant_api_get_products.c +++ b/src/lib/merchant_api_get_products.c @@ -203,8 +203,6 @@ handle_get_products_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 cb function to call with the backend's inventory information * @param cb_cls closure for @a cb * @return the request handle; NULL upon error @@ -213,7 +211,6 @@ struct TALER_MERCHANT_ProductsGetHandle * TALER_MERCHANT_products_get ( struct GNUNET_CURL_Context *ctx, const char *backend_url, - const char *instance_id, TALER_MERCHANT_ProductsGetCallback cb, void *cb_cls) { @@ -224,21 +221,9 @@ TALER_MERCHANT_products_get ( pgh->ctx = ctx; pgh->cb = cb; pgh->cb_cls = cb_cls; - { - char *path; - - if (NULL == instance_id) - GNUNET_asprintf (&path, - "products"); - else - GNUNET_asprintf (&path, - "instances/%s/products", - instance_id); - pgh->url = TALER_url_join (backend_url, - path, - NULL); - GNUNET_free (path); - } + pgh->url = TALER_url_join (backend_url, + "products", + NULL); if (NULL == pgh->url) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |