summaryrefslogtreecommitdiff
path: root/src/wire-plugins/plugin_wire_taler-bank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wire-plugins/plugin_wire_taler-bank.c')
-rw-r--r--src/wire-plugins/plugin_wire_taler-bank.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/wire-plugins/plugin_wire_taler-bank.c b/src/wire-plugins/plugin_wire_taler-bank.c
index 282856ecf..c9d8cf2ac 100644
--- a/src/wire-plugins/plugin_wire_taler-bank.c
+++ b/src/wire-plugins/plugin_wire_taler-bank.c
@@ -1050,92 +1050,6 @@ taler_bank_get_history (void *cls,
return whh;
}
-
-
-/**
- * Query transfer history of an account. The query is based on
- * the dates where the wire transfers got settled at the bank.
- *
- * @param cls the @e cls of this struct with the plugin-specific
- * state
- * @param account_section specifies the configuration section which
- * identifies the account for which we should get the
- * history
- * @param direction what kinds of wire transfers should be returned
- * @param start_date each history entry in the result will be time
- * stamped after, or at this date.
- * @param end_date each history entry in the result will be time
- * stamped before, or at this date.
- * @param hres_cb the callback to call with the transaction history
- * @param hres_cb_cls closure for the above callback
- * @param return the operation handle, or NULL on errors.
- */
-static struct TALER_WIRE_HistoryHandle *
-taler_bank_get_history_range
- (void *cls,
- const char *account_section,
- enum TALER_BANK_Direction direction,
- struct GNUNET_TIME_Absolute start_date,
- struct GNUNET_TIME_Absolute end_date,
- TALER_WIRE_HistoryResultCallback hres_cb,
- void *hres_cb_cls)
-{
- struct TALER_Account account;
- struct TalerBankClosure *tc = cls;
- struct TALER_WIRE_HistoryHandle *whh;
-
- if (GNUNET_OK !=
- parse_account_cfg (tc->cfg,
- account_section,
- &account))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Could not parse the config section '%s'\n",
- account_section);
- return NULL;
- }
-
- whh = GNUNET_new (struct TALER_WIRE_HistoryHandle);
- whh->hres_cb = hres_cb;
- whh->hres_cb_cls = hres_cb_cls;
-
- if (GNUNET_OK !=
- TALER_BANK_auth_parse_cfg (tc->cfg,
- account_section,
- &whh->auth))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Could not parse the auth values from '%s'\n",
- account_section);
- GNUNET_free (whh);
- return NULL;
- }
- whh->hh = TALER_BANK_history_range (tc->ctx,
- account.details.x_taler_bank.bank_base_url,
- &whh->auth,
- account.details.x_taler_bank.no,
- direction,
- /* Just always descending. */
- GNUNET_NO,
- start_date,
- end_date,
- &bhist_cb,
- whh);
- if (NULL == whh->hh)
- {
- GNUNET_break (0);
- taler_bank_get_history_cancel (NULL,
- whh);
- TALER_WIRE_account_free (&account);
- return NULL;
- }
- TALER_WIRE_account_free (&account);
- GNUNET_assert (NULL != whh);
-
- return whh;
-}
-
-
/**
* Context for a rejection operation.
*/