From e0d828299a65062ed6985fa46c2fb53901234f06 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 3 Jun 2007 03:05:07 +0000 Subject: [PATCH] r13165@catbus: nickm | 2007-06-02 22:55:22 -0400 Remove an obsoleted function svn:r10460 --- src/or/dirserv.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 82a42af118..305fb246fd 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1279,43 +1279,6 @@ dirserv_pick_cached_dir_obj(cached_dir_t *cache_src, } } -#if 0 -/** Helper: If we're authoritative and auth_src is set, use - * auth_src, otherwise use cache_src. If we're using - * auth_src and it's been dirty for at least - * DIR_REGEN_SLACK_TIME seconds, call regenerate() to make a fresh one. - * Yields the compressed version of the directory object if compress is - * set; otherwise return the uncompressed version. (In either case, sets - * *out and returns the size of the buffer in *out.) - * - * Use auth_type to help determine whether we're authoritative for - * this kind of object. - **/ -static size_t -dirserv_get_obj(const char **out, - int compress, - cached_dir_t *cache_src, - cached_dir_t *auth_src, - time_t dirty, cached_dir_t *(*regenerate)(void), - const char *name, - authority_type_t auth_type) -{ - cached_dir_t *d = dirserv_pick_cached_dir_obj( - cache_src, auth_src, - dirty, regenerate, name, auth_type); - - if (!d) - return 0; - *out = compress ? d->dir_z : d->dir; - if (*out) { - return compress ? d->dir_z_len : d->dir_len; - } else { - /* not yet available. */ - return 0; - } -} -#endif - /** Return the most recently generated encoded signed v1 directory, * generating a new one as necessary. If not a v1 authoritative directory * may return NULL if no directory is yet cached. */