-simplify

This commit is contained in:
Christian Grothoff 2023-06-21 09:03:55 +02:00
parent f5ce22ddf6
commit c512c8b101
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -36,11 +36,6 @@
struct TALER_EXCHANGE_LinkHandle struct TALER_EXCHANGE_LinkHandle
{ {
/**
* The connection to exchange this request handle will use
*/
struct TALER_EXCHANGE_Handle *exchange;
/** /**
* The url for this request. * The url for this request.
*/ */
@ -451,12 +446,12 @@ handle_link_finished (void *cls,
struct TALER_EXCHANGE_LinkHandle * struct TALER_EXCHANGE_LinkHandle *
TALER_EXCHANGE_link (struct TALER_EXCHANGE_Handle *exchange, TALER_EXCHANGE_link (
const struct TALER_CoinSpendPrivateKeyP *coin_priv, struct TALER_EXCHANGE_Handle *exchange,
const struct const struct TALER_CoinSpendPrivateKeyP *coin_priv,
TALER_AgeCommitmentProof *age_commitment_proof, const struct TALER_AgeCommitmentProof *age_commitment_proof,
TALER_EXCHANGE_LinkCallback link_cb, TALER_EXCHANGE_LinkCallback link_cb,
void *link_cb_cls) void *link_cb_cls)
{ {
struct TALER_EXCHANGE_LinkHandle *lh; struct TALER_EXCHANGE_LinkHandle *lh;
CURL *eh; CURL *eh;
@ -489,7 +484,6 @@ TALER_EXCHANGE_link (struct TALER_EXCHANGE_Handle *exchange,
pub_str); pub_str);
} }
lh = GNUNET_new (struct TALER_EXCHANGE_LinkHandle); lh = GNUNET_new (struct TALER_EXCHANGE_LinkHandle);
lh->exchange = exchange;
lh->link_cb = link_cb; lh->link_cb = link_cb;
lh->link_cb_cls = link_cb_cls; lh->link_cb_cls = link_cb_cls;
lh->coin_priv = *coin_priv; lh->coin_priv = *coin_priv;