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/connection.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/or/connection.c') diff --git a/src/or/connection.c b/src/or/connection.c index 0a01e5020c..77565eed50 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -4164,22 +4164,6 @@ connection_dir_get_by_purpose_and_resource(int purpose, return NULL; } -/** Return an open, non-marked connection of a given type and purpose, or NULL - * if no such connection exists. */ -connection_t * -connection_get_by_type_purpose(int type, int purpose) -{ - smartlist_t *conns = get_connection_array(); - SMARTLIST_FOREACH(conns, connection_t *, conn, - { - if (conn->type == type && - !conn->marked_for_close && - (purpose == conn->purpose)) - return conn; - }); - return NULL; -} - /** Return 1 if conn is a listener conn, else return 0. */ int connection_is_listener(connection_t *conn) -- cgit v1.2.3-54-g00ecf