summaryrefslogtreecommitdiff
path: root/lib/pipeline.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2013-03-14 13:30:59 +0100
committerLinus Nielsen Feltzing <linus@haxx.se>2013-03-14 13:30:59 +0100
commitc2fab665759a54b41af08a64df0756b2cdf914ce (patch)
tree38e21b3a59384fd65754129f6c8638836b954bf5 /lib/pipeline.c
parent0f147887b0d592d5fa72215282e84103eb165ad7 (diff)
downloadcurl-c2fab665759a54b41af08a64df0756b2cdf914ce.tar.gz
pipelining: Remove dead code.
Diffstat (limited to 'lib/pipeline.c')
-rw-r--r--lib/pipeline.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/pipeline.c b/lib/pipeline.c
index 7abc35fd0..624fc4257 100644
--- a/lib/pipeline.c
+++ b/lib/pipeline.c
@@ -92,41 +92,6 @@ bool Curl_pipeline_penalized(struct SessionHandle *data,
return FALSE;
}
-/* Find the best connection in a bundle to use for the next request */
-struct connectdata *
-Curl_bundle_find_best(struct SessionHandle *data,
- struct connectbundle *cb_ptr)
-{
- struct curl_llist_element *curr;
- struct connectdata *conn;
- struct connectdata *best_conn = NULL;
- size_t pipe_len;
- size_t best_pipe_len = 99;
-
- (void)data;
-
- curr = cb_ptr->conn_list->head;
- while(curr) {
- conn = curr->ptr;
- pipe_len = conn->send_pipe->size + conn->recv_pipe->size;
-
- if(!Curl_pipeline_penalized(conn->data, conn) &&
- pipe_len < best_pipe_len) {
- best_conn = conn;
- best_pipe_len = pipe_len;
- }
- curr = curr->next;
- }
-
- /* If we haven't found a connection, i.e all pipelines are penalized
- or full, just pick one. The request will then be queued in
- Curl_add_handle_to_pipeline(). */
- if(!best_conn) {
- best_conn = cb_ptr->conn_list->head->ptr;
- }
- return best_conn;
-}
-
CURLcode Curl_add_handle_to_pipeline(struct SessionHandle *handle,
struct connectdata *conn)
{