summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-09-11 20:33:27 +0200
committerGeorge Kadianakis <desnacked@gmail.com>2011-09-11 20:33:27 +0200
commit0dcf327248d9e971b2bad9fcd498c3b18f2f70c0 (patch)
tree81712216e38ef6b2b037de3247d01f54f086565f /src
parent9bf34eb65b9533bf9a53952acf2994b9ee973ff2 (diff)
downloadtor-0dcf327248d9e971b2bad9fcd498c3b18f2f70c0.tar.gz
tor-0dcf327248d9e971b2bad9fcd498c3b18f2f70c0.zip
Remove connection_uses_transport() since it was unused.
Diffstat (limited to 'src')
-rw-r--r--src/or/connection.c11
-rw-r--r--src/or/connection.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 04dba2b9b0..05688e5a4e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4150,17 +4150,6 @@ get_proxy_addrport(tor_addr_t *addr, uint16_t *port, int *proxy_type,
return 0;
}
-/** Returns true if connection <b>conn</b> is using a pluggable
- * transports proxy server. */
-int
-connection_uses_transport(connection_t *conn)
-{
- const transport_t *transport=NULL;
- find_transport_by_bridge_addrport(&conn->addr,
- conn->port,&transport);
- return transport ? 1 : 0;
-}
-
/** Returns the global proxy type used by tor. */
static int
get_proxy_type(void)
diff --git a/src/or/connection.h b/src/or/connection.h
index 51cf2a845a..be3de88aaa 100644
--- a/src/or/connection.h
+++ b/src/or/connection.h
@@ -60,7 +60,6 @@ int connection_read_proxy_handshake(connection_t *conn);
void log_failed_proxy_connection(connection_t *conn);
int get_proxy_addrport(tor_addr_t *addr, uint16_t *port, int *proxy_type,
const connection_t *conn);
-int connection_uses_transport(connection_t *conn);
int retry_all_listeners(smartlist_t *replaced_conns,
smartlist_t *new_conns);