aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index ddd8b9b5c..7d203879f 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -455,24 +455,6 @@ CURLcode Curl_client_write(struct connectdata *conn,
#define MIN(a,b) (a < b ? a : b)
-void Curl_read_rewind(struct connectdata *conn,
- size_t extraBytesRead)
-{
- char buf[512 + 1];
- size_t bytesToShow;
-
- conn->read_pos -= extraBytesRead;
- conn->bits.stream_was_rewound = TRUE;
-
- bytesToShow = MIN(conn->buf_len - conn->read_pos, sizeof(buf)-1);
- memcpy(buf, conn->master_buffer + conn->read_pos, bytesToShow);
- buf[bytesToShow] = '\0';
-
- DEBUGF(infof(conn->data,
- "Buffer after stream rewind (read_pos = %d): [%s]",
- conn->read_pos, buf));
-}
-
/*
* Internal read-from-socket function. This is meant to deal with plain
* sockets, SSL sockets and kerberos sockets.