diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-22 13:02:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-22 13:02:11 +0100 |
commit | 0d3ec509d7192e973123de1ab390826fff4df230 (patch) | |
tree | 30a5b91bc255c0f164a52bd17a9b42aa9ecee8c4 /src/mint/plugin.c | |
parent | 53876904c590aa9b1e7bd48395cb049f109adbd4 (diff) | |
download | exchange-0d3ec509d7192e973123de1ab390826fff4df230.tar.xz |
move free functions into plugin
Diffstat (limited to 'src/mint/plugin.c')
-rw-r--r-- | src/mint/plugin.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/mint/plugin.c b/src/mint/plugin.c index 67cabd815..4fb75f87a 100644 --- a/src/mint/plugin.c +++ b/src/mint/plugin.c @@ -115,69 +115,4 @@ plugin_fini () } -// FIXME: decide if we should keep these in each plugin, here -// or yet again somewhere else entirely (plugin_common.c?) - -/** - * Free memory associated with the given reserve history. - * - * @param rh history to free. - */ -void -TALER_MINT_DB_free_reserve_history (struct ReserveHistory *rh) -{ - struct BankTransfer *bt; - struct CollectableBlindcoin *cbc; - struct ReserveHistory *backref; - - while (NULL != rh) - { - switch(rh->type) - { - case TALER_MINT_DB_RO_BANK_TO_MINT: - bt = rh->details.bank; - if (NULL != bt->wire) - json_decref ((json_t *) bt->wire); /* FIXME: avoid cast? */ - GNUNET_free (bt); - break; - case TALER_MINT_DB_RO_WITHDRAW_COIN: - cbc = rh->details.withdraw; - GNUNET_CRYPTO_rsa_signature_free (cbc->sig); - GNUNET_CRYPTO_rsa_public_key_free (cbc->denom_pub); - GNUNET_free (cbc); - break; - } - backref = rh; - rh = rh->next; - GNUNET_free (backref); - } -} - - -/** - * Free memory of the link data list. - * - * @param ldl link data list to release - */ -void -TALER_db_link_data_list_free (struct LinkDataList *ldl) -{ - GNUNET_break (0); // FIXME -} - - -/** - * Free linked list of transactions. - * - * @param list list to free - */ -void -TALER_MINT_DB_free_coin_transaction_list (struct TALER_MINT_DB_TransactionList *list) -{ - // FIXME: check logic! - GNUNET_break (0); -} - - - /* end of plugin.c */ |