aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-15 15:33:34 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-15 15:33:34 -0500
commitb3a69074933492080629d45b1c890606aa2bd08a (patch)
tree53f4929f0c1e19ed7ff9022ac194defe8ce78f25 /src/or/connection.c
parent67749475f56532235602e0c8d1a9a59a68d816c3 (diff)
downloadtor-b3a69074933492080629d45b1c890606aa2bd08a.tar
tor-b3a69074933492080629d45b1c890606aa2bd08a.tar.gz
Remove a bunch of functions that were never called.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 0a01e5020..77565eed5 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 <b>conn</b> is a listener conn, else return 0. */
int
connection_is_listener(connection_t *conn)