diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 7287ddff0b..b24b63014c 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -453,28 +453,6 @@ directory_set_dirty()
runningrouters_is_dirty = now;
}
-#if 0
-/** Load all descriptors from a directory stored in the string
- * dir.
- */
-int
-dirserv_load_from_directory_string(const char *dir)
-{
- const char *cp = dir, *m;
- while (1) {
- cp = strstr(cp, "\nrouter ");
- if (!cp) break;
- ++cp;
- if (dirserv_add_descriptor(&cp,&m) < -1) {
- /* only fail if parsing failed; keep going if simply rejected */
- return -1;
- }
- --cp; /*Back up to newline.*/
- }
- return 0;
-}
-#endif
-
/**
* Allocate and return a description of the status of the server desc,
* for use in a router-status line. The server is listed
@@ -1183,9 +1161,9 @@ generate_v2_networkstatus(void)
}
/** Look for a network status object as specified by key, which should
- * be eiher "authority" (to find a network status generated by us), a hex
+ * be either "authority" (to find a network status generated by us), a hex
* identity digest (to find a network status generated by given directory), or
- * "all" (to return all the v2 network status objects we have, concatenated.
+ * "all" (to return all the v2 network status objects we have, concatenated).
* If compress, find the version compressed with zlib. Return 0 if
* nothing was found; otherwise set *directory to the matching network
* status and return its length.
@@ -1215,8 +1193,7 @@ dirserv_get_networkstatus_v2(const char **directory, const char *key,
return 0;
}
-/**
- * Add a routerinfo_t to descs_out for each routers matching
+/** Add a routerinfo_t to descs_out for each routers matching
* key. The key should be either "/tor/server/authority" for our own
* routerinfo; "/tor/server/all" for all the routerinfos we have,
* concatenated; or "/tor/server/FP" where FP is a plus-separated sequence of