diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-30 06:27:59 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-30 06:27:59 +0000 |
commit | 9cec3a13f510f09f328f824796676f24a99ccf35 (patch) | |
tree | 399bc151d8add56eefb4477e5cb384a848dda850 /src/or/routerparse.c | |
parent | a6eb8cd2a0a206c7cc975751044723e4bcc60b7b (diff) | |
download | tor-9cec3a13f510f09f328f824796676f24a99ccf35.tar tor-9cec3a13f510f09f328f824796676f24a99ccf35.tar.gz |
remove some functions that are not used; #if0 out some files that are not likely to be used.
svn:r5471
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index d7c5c0248..e380f6f0e 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1079,12 +1079,6 @@ _compare_routerstatus_entries(const void **_a, const void **_b) return memcmp(a->identity_digest, b->identity_digest, DIGEST_LEN); } -void -sort_routerstatus_entries(smartlist_t *sl) -{ - smartlist_sort(sl, _compare_routerstatus_entries); -} - /** Given a versioned (v2 or later) network-status object in <b>s</b>, try to * parse it and return the result. Return NULL on failure. Check the * signature of the network status, but do not (yet) check the signing key for @@ -1319,23 +1313,6 @@ router_parse_addr_policy_from_string(const char *s, int assume_action) return r; } -/** Given an exit policicy stored in <b>s</b>, parse it and add it to the end - * of the exit policy of <b>router</b>. Return 0 on success, -1 on failure. - */ -int -router_add_exit_policy_from_string(routerinfo_t *router, const char *s) -{ - addr_policy_t *newe, *tmpe; - newe = router_parse_addr_policy_from_string(s, -1); - if (!newe) - return -1; - for (tmpe = router->exit_policy; tmpe; tmpe=tmpe->next) - ; - tmpe->next = newe; - - return 0; -} - /** Add an exit policy stored in the token <b>tok</b> to the router info in * <b>router</b>. Return 0 on success, -1 on failure. */ static int |