aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-10-07 02:42:52 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-10-21 06:02:47 +0200
commitaf02c4a9c3ee0ab85a4ecf5c7ff16e2da901c886 (patch)
tree543776f95304a5a91a2ac07f7f88f433da9760f3 /src/or/dirserv.c
parent29825f0bfd301185744d6961c1b62b9597d165d6 (diff)
downloadtor-af02c4a9c3ee0ab85a4ecf5c7ff16e2da901c886.tar.gz
tor-af02c4a9c3ee0ab85a4ecf5c7ff16e2da901c886.zip
remove code related to tracking descriptor serving times
This had broken due to bitrot - it doesn't know about microdescriptors at all, and afaik hasn't generally been used in ages.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 96a5913a57..f64dcff33b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3482,9 +3482,6 @@ connection_dirserv_finish_spooling(dir_connection_t *conn)
static int
connection_dirserv_add_servers_to_outbuf(dir_connection_t *conn)
{
-#ifdef TRACK_SERVED_TIME
- time_t now = time(NULL);
-#endif
int by_fp = (conn->dir_spool_src == DIR_SPOOL_SERVER_BY_FP ||
conn->dir_spool_src == DIR_SPOOL_EXTRA_BY_FP);
int extra = (conn->dir_spool_src == DIR_SPOOL_EXTRA_BY_FP ||
@@ -3512,9 +3509,6 @@ connection_dirserv_add_servers_to_outbuf(dir_connection_t *conn)
* unknown bridge descriptor has shown up between then and now. */
continue;
}
-#ifdef TRACK_SERVED_TIME
- sd->last_served_at = now;
-#endif
body = signed_descriptor_get_body(sd);
if (conn->zlib_state) {
/* XXXX022 This 'last' business should actually happen on the last