From 16bdd871f40e2994eba4dcb6c32ca5a1e25cabb9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 2 Jun 2016 10:02:07 +0200 Subject: [PATCH] remove useless check --- src/exchange/taler-exchange-httpd_refresh.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/exchange/taler-exchange-httpd_refresh.c b/src/exchange/taler-exchange-httpd_refresh.c index e03be6373..8e74db506 100644 --- a/src/exchange/taler-exchange-httpd_refresh.c +++ b/src/exchange/taler-exchange-httpd_refresh.c @@ -561,7 +561,6 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh, json_t *link_encs; json_t *transfer_pubs; json_t *secret_encs; - json_t *coin_detail; int res; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_json ("new_denoms", &new_denoms), @@ -605,14 +604,6 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh, return TMH_RESPONSE_reply_arg_invalid (connection, "transfer_pubs"); } - coin_detail = json_array_get (coin_evs, 0); - if (NULL == coin_detail) - { - // FIXME: generate proper HTTP response! - GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); - return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; - } res = handle_refresh_melt_json (connection, new_denoms, melt_coin,