From b3a69074933492080629d45b1c890606aa2bd08a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 15 Feb 2014 15:33:34 -0500 Subject: Remove a bunch of functions that were never called. --- src/or/routerset.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'src/or/routerset.c') diff --git a/src/or/routerset.c b/src/or/routerset.c index 2e41f7f6c4..7aee90d6db 100644 --- a/src/or/routerset.c +++ b/src/or/routerset.c @@ -358,39 +358,6 @@ routerset_get_all_nodes(smartlist_t *out, const routerset_t *routerset, } } -#if 0 -/** Add to target every node_t from source except: - * - * 1) Don't add it if include is non-empty and the relay isn't in - * include; and - * 2) Don't add it if exclude is non-empty and the relay is - * excluded in a more specific fashion by exclude. - * 3) If running_only, don't add non-running routers. - */ -void -routersets_get_node_disjunction(smartlist_t *target, - const smartlist_t *source, - const routerset_t *include, - const routerset_t *exclude, int running_only) -{ - SMARTLIST_FOREACH(source, const node_t *, node, { - int include_result; - if (running_only && !node->is_running) - continue; - if (!routerset_is_empty(include)) - include_result = routerset_contains_node(include, node); - else - include_result = 1; - - if (include_result) { - int exclude_result = routerset_contains_node(exclude, node); - if (include_result >= exclude_result) - smartlist_add(target, (void*)node); - } - }); -} -#endif - /** Remove every node_t from lst that is in routerset. */ void routerset_subtract_nodes(smartlist_t *lst, const routerset_t *routerset) -- cgit v1.2.3-54-g00ecf