aboutsummaryrefslogtreecommitdiff
path: root/src/or/periodic.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-02 15:11:16 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-13 16:24:45 -0500
commit65a6489e5e52ff9b80e10e5fdea0cdd3e1097810 (patch)
tree15112292f3491a79108c17047e522bfe1962d4b5 /src/or/periodic.h
parent2bf8fb5ee3a62cb6c2f16d2f37f54213e092d4cc (diff)
downloadtor-65a6489e5e52ff9b80e10e5fdea0cdd3e1097810.tar.gz
tor-65a6489e5e52ff9b80e10e5fdea0cdd3e1097810.zip
fix whitespace; remove dead code
Diffstat (limited to 'src/or/periodic.h')
-rw-r--r--src/or/periodic.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/or/periodic.h b/src/or/periodic.h
index 3a73f64f40..2ab3db00a5 100644
--- a/src/or/periodic.h
+++ b/src/or/periodic.h
@@ -13,7 +13,6 @@
typedef int (*periodic_event_helper_t)(time_t now,
const or_options_t *options);
-
/** A single item for the periodic-events-function table. */
typedef struct periodic_event_item_t {
periodic_event_helper_t fn; /**< The function to run the event */
@@ -27,26 +26,6 @@ typedef struct periodic_event_item_t {
#define PERIODIC_EVENT(fn) { fn##_callback, 0, 0, NULL, #fn }
#define END_OF_PERIODIC_EVENTS { NULL, 0, 0, NULL, NULL }
-#if 0
-/** Refactor test, check the last_action_time was now or (now - delta - 1)
-* It returns an incremented <b>now</b> value and accounts for the current
-* implementation's off by one error in it's comparisons. */
-#define INCREMENT_DELTA_AND_TEST(id, now, delta) \
- (now+delta); \
- STMT_BEGIN \
- periodic_event_item_t *ev = &periodic_events[id]; \
- if (ev->last_action_time != now - delta - 1 && \
- ev->last_action_time != now) { \
- log_err(LD_BUG, "[Refactor Bug] Missed an interval " \
- "for %s, Got %lu, wanted %lu or %lu.", ev->name, \
- ev->last_action_time, now, now-delta); \
- tor_assert(0); \
- } \
- STMT_END
-#endif
-
-void periodic_event_assert_in_range(periodic_event_item_t *event,
- time_t start, time_t end);
void periodic_event_launch(periodic_event_item_t *event);
void periodic_event_destroy(periodic_event_item_t *event);
void periodic_event_reschedule(periodic_event_item_t *event);