From 2e6d284e039acdc2fef37ca5b781f1ecee6a548d Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 16 Jan 2020 08:50:40 +0100 Subject: DCE --- src/json/json_wire.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/json/json_wire.c') diff --git a/src/json/json_wire.c b/src/json/json_wire.c index 06d39118a..5052f458f 100644 --- a/src/json/json_wire.c +++ b/src/json/json_wire.c @@ -24,38 +24,6 @@ #include "taler_json_lib.h" -/** - * Compute the hash of the given wire details. The resulting - * hash is what is put into the contract. - * - * @param wire_s wire details to hash - * @param hc[out] set to the hash - * @return #GNUNET_OK on success, #GNUNET_SYSERR if @a wire_s is malformed - */ -int -TALER_JSON_exchange_wire_signature_hash (const json_t *wire_s, - struct GNUNET_HashCode *hc) -{ - const char *payto_url; - struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_string ("url", &payto_url), - GNUNET_JSON_spec_end () - }; - - if (GNUNET_OK != - GNUNET_JSON_parse (wire_s, - spec, - NULL, NULL)) - { - GNUNET_break_op (0); - return GNUNET_SYSERR; - } - TALER_exchange_wire_signature_hash (payto_url, - hc); - return GNUNET_OK; -} - - /** * Compute the hash of the given wire details. The resulting * hash is what is put into the contract. -- cgit v1.2.3