From 36e15a501fc8285f75a0e403d4d64e46f77c732d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Dec 2019 18:16:33 +0100 Subject: purge history-range API, no longer needed (#5993) --- src/bank-lib/fakebank_history.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'src/bank-lib/fakebank_history.c') 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 @@ -96,47 +96,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. * -- cgit v1.2.3