diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-15 15:33:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-15 15:33:34 -0500 |
commit | b3a69074933492080629d45b1c890606aa2bd08a (patch) | |
tree | 53f4929f0c1e19ed7ff9022ac194defe8ce78f25 /src/or/router.c | |
parent | 67749475f56532235602e0c8d1a9a59a68d816c3 (diff) | |
download | tor-b3a69074933492080629d45b1c890606aa2bd08a.tar.gz tor-b3a69074933492080629d45b1c890606aa2bd08a.zip |
Remove a bunch of functions that were never called.
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/or/router.c b/src/or/router.c index b96428362b..c22f4c3671 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1664,18 +1664,6 @@ router_is_me(const routerinfo_t *router) return router_digest_is_me(router->cache_info.identity_digest); } -/** Return true iff <b>fp</b> is a hex fingerprint of my identity digest. */ -int -router_fingerprint_is_me(const char *fp) -{ - char digest[DIGEST_LEN]; - if (strlen(fp) == HEX_DIGEST_LEN && - base16_decode(digest, sizeof(digest), fp, HEX_DIGEST_LEN) == 0) - return router_digest_is_me(digest); - - return 0; -} - /** Return a routerinfo for this OR, rebuilding a fresh one if * necessary. Return NULL on error, or if called on an OP. */ const routerinfo_t * @@ -1861,12 +1849,6 @@ router_rebuild_descriptor(int force) tor_free(p_tmp); } -#if 0 - /* XXXX NM NM I belive this is safe to remove */ - if (authdir_mode(options)) - ri->is_valid = ri->is_named = 1; /* believe in yourself */ -#endif - if (options->MyFamily && ! options->BridgeRelay) { smartlist_t *family; if (!warned_nonexistent_family) |