[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Remove connection_uses_transport() since it was unused.
commit 0dcf327248d9e971b2bad9fcd498c3b18f2f70c0
Author: George Kadianakis <desnacked@xxxxxxxxx>
Date: Sun Sep 11 20:33:27 2011 +0200
Remove connection_uses_transport() since it was unused.
---
src/or/connection.c | 11 -----------
src/or/connection.h | 1 -
2 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/src/or/connection.c b/src/or/connection.c
index 04dba2b..05688e5 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 51cf2a8..be3de88 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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits