diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-16 16:47:20 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-16 16:47:20 +0000 |
commit | 1fbe499bfec73bdca4cc115a75b7b8bb1e105ddc (patch) | |
tree | 1f1150e444362bcbae2006f25b8f30e7d223a1e8 /src/or/directory.c | |
parent | 6d15a735485203f90640187a630c04003012e8aa (diff) | |
download | tor-1fbe499bfec73bdca4cc115a75b7b8bb1e105ddc.tar.gz tor-1fbe499bfec73bdca4cc115a75b7b8bb1e105ddc.zip |
Remove a bunch of #if0d code that I no longer need to look at.
svn:r5083
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 4212f9b823..031828be8d 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -905,15 +905,6 @@ connection_dir_client_reached_eof(connection_t *conn) if (router_parse_directory(body) < 0) { log_fn(LOG_NOTICE,"I failed to parse the directory I fetched from '%s:%d'. Ignoring.", conn->address, conn->port); } -#if 0 - if (router_load_routerlist_from_directory(body, NULL, !skewed, 0) < 0) { - log_fn(LOG_NOTICE,"I failed to parse the directory I fetched from '%s:%d'. Ignoring.", conn->address, conn->port); - tor_free(body); tor_free(headers); tor_free(reason); - return -1; - } - /* do things we've been waiting to do */ - directory_has_arrived(time(NULL), conn->identity_digest); -#endif } if (conn->purpose == DIR_PURPOSE_FETCH_RUNNING_LIST) { @@ -931,21 +922,6 @@ connection_dir_client_reached_eof(connection_t *conn) tor_free(body); tor_free(headers); tor_free(reason); return -1; } -#if 0 - if (!(rrs = router_parse_runningrouters(body, 1))) { - log_fn(LOG_WARN, "Can't parse runningrouters list (server '%s:%d')", - conn->address, conn->port); - tor_free(body); tor_free(headers); tor_free(reason); - return -1; - } - router_get_routerlist(&rl); - if (rl) { - routerlist_set_runningrouters(rl,rrs); - helper_nodes_set_status_from_directory(); - } else { - running_routers_free(rrs); - } -#endif } if (conn->purpose == DIR_PURPOSE_FETCH_NETWORKSTATUS) { |