summaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank_history.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-15 18:16:33 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-15 18:16:33 +0100
commit36e15a501fc8285f75a0e403d4d64e46f77c732d (patch)
tree2d5d81b3bff1c9cbe1cad4aaa24e61932eda169b /src/bank-lib/fakebank_history.c
parent745a48ef7c01170c2b37bfe7849f9704f8ecc274 (diff)
downloadexchange-36e15a501fc8285f75a0e403d4d64e46f77c732d.tar.gz
exchange-36e15a501fc8285f75a0e403d4d64e46f77c732d.tar.bz2
exchange-36e15a501fc8285f75a0e403d4d64e46f77c732d.zip
purge history-range API, no longer needed (#5993)
Diffstat (limited to 'src/bank-lib/fakebank_history.c')
-rw-r--r--src/bank-lib/fakebank_history.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/bank-lib/fakebank_history.c b/src/bank-lib/fakebank_history.c
index 170574522..f4c615c52 100644
--- a/src/bank-lib/fakebank_history.c
+++ b/src/bank-lib/fakebank_history.c
@@ -97,47 +97,6 @@ TFH_handle_history_step (const struct HistoryArgs *ha,
/**
- * Decides whether the history builder will advance or not
- * to the next element.
- *
- * @param ha history args
- * @return GNUNET_YES/NO to advance/not-advance.
- */
-int
-TFH_handle_history_range_advance (const struct HistoryArgs *ha,
- const struct Transaction *pos)
-{
- const struct HistoryRangeDates *hrd = ha->range;
-
- if ( (NULL != pos) &&
- (pos->date.abs_value_us <= hrd->end.abs_value_us) )
- return GNUNET_YES;
-
- return GNUNET_NO;
-}
-
-
-/**
- * Iterates towards the "next" element to be processed. To
- * be used when the current element does not get inserted in
- * the result.
- *
- * @param ha history arguments.
- * @param pos current element being processed.
- * @return the next element to be processed.
- */
-struct Transaction *
-TFH_handle_history_range_skip (const struct HistoryArgs *ha,
- const struct Transaction *pos)
-{
- (void) ha;
- /* Transactions
- * are stored from "head"/older to "tail"/younger. */
- return pos->next;
-}
-
-
-/**
* Actual history response builder.
*
* @param pos first (included) element in the result set, NULL if history is empty