summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-29 18:20:56 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-29 18:20:56 +0000
commit9d1af71b70d7f7253976e97633fd4d1e1d395d77 (patch)
treeb2bc560c4136acdf1a9a5eafc112c8b632cff1f7 /src/or/connection.c
parentf89a3b14488ddfa5f7c11cb76fc73471835c00cf (diff)
downloadtor-9d1af71b70d7f7253976e97633fd4d1e1d395d77.tar.gz
tor-9d1af71b70d7f7253976e97633fd4d1e1d395d77.zip
r13053@catbus: nickm | 2007-05-29 13:35:33 -0400
Move connection_should_read_from_linked_conn into main.c, which is the only file that uses it. svn:r10394
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index cfc00e3e5c..1cfe419f52 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2277,24 +2277,6 @@ connection_state_is_connecting(connection_t *conn)
return 0;
}
-/* XXXX020 move this into main.c */
-/** Return true iff <b>conn</b> is linked conn, and reading from the conn
- * linked to it would be good and feasible. (Reading is "feasible" if the
- * other conn exists and has data in its outbuf, and is "good" if we have our
- * reading_from_linked_conn flag set and the other conn has its
- * writing_to_linked_conn flag set.)*/
-int
-connection_should_read_from_linked_conn(connection_t *conn)
-{
- if (conn->linked && conn->reading_from_linked_conn) {
- if (! conn->linked_conn ||
- (conn->linked_conn->writing_to_linked_conn &&
- buf_datalen(conn->linked_conn->outbuf)))
- return 1;
- }
- return 0;
-}
-
/** Allocates a base64'ed authenticator for use in http or https
* auth, based on the input string <b>authenticator</b>. Returns it
* if success, else returns NULL. */