summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-09-08 05:32:41 +0000
committerRoger Dingledine <arma@torproject.org>2005-09-08 05:32:41 +0000
commit03ddeb262095e0078330b9034a056ecd5a0d1627 (patch)
tree9bab05a5b332c47780fe6bfab8b458486e0f0d8f /src/or/router.c
parent0ac3c58480be61eb03e7b43bfcff0859df4a78c7 (diff)
downloadtor-03ddeb262095e0078330b9034a056ecd5a0d1627.tar.gz
tor-03ddeb262095e0078330b9034a056ecd5a0d1627.zip
strip obsolete code
svn:r4918
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/or/router.c b/src/or/router.c
index cabfcc26ea..302bd53ab2 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -371,22 +371,6 @@ init_keys(void)
add_trusted_dir_server(NULL, (uint16_t)options->DirPort, digest,
options->V1AuthoritativeDir);
}
-#if 0
- /* 7. [authdirserver only] load old directory, if it's there */
- tor_snprintf(keydir,sizeof(keydir),"%s/cached-directory", datadir);
- log_fn(LOG_INFO,"Loading cached directory from \"%s\"...",keydir);
- cp = read_file_to_str(keydir,0);
- if (!cp) {
- log_fn(LOG_INFO,"Cached directory \"%s\" not present. Ok.",keydir);
- } else {
- if (dirserv_load_from_directory_string(cp) < 0) {
- log_fn(LOG_WARN, "Cached directory \"%s\" is corrupt, only loaded part of it.", keydir);
- tor_free(cp);
- return 0;
- }
- tor_free(cp);
- }
-#endif
/* success */
return 0;
}