From b6a2c061588ab34e8868db4970e77653b36b97b4 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 6 Dec 2018 17:58:42 +0100 Subject: Use exchange-lib function to get the exchange's base URL. --- src/lib/testing_api_cmd_tip.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/lib/testing_api_cmd_tip.c b/src/lib/testing_api_cmd_tip.c index f6a8f843..b939d8e5 100644 --- a/src/lib/testing_api_cmd_tip.c +++ b/src/lib/testing_api_cmd_tip.c @@ -29,17 +29,6 @@ #include "taler_merchant_service.h" #include "taler_merchant_testing_lib.h" -/** - * Obtain the URL to use for an API request. - * - * @param h the exchange handle to query - * @param path Taler API path (i.e. "/reserve/withdraw") - * @return the full URL to use with cURL - */ -char * -MAH_path_to_url (struct TALER_EXCHANGE_Handle *h, - const char *path); - /** * State for a /tip-pickup CMD. */ @@ -958,7 +947,7 @@ tip_pickup_run (void *cls, const struct GNUNET_HashCode *tip_id; tps->is = is; - tps->exchange_url = MAH_path_to_url (tps->exchange, "/"); + tps->exchange_url = TALER_EXCHANGE_get_base_url (tps->exchange); if (NULL == tps->replay_reference) { replay_cmd = NULL; -- cgit v1.2.3