summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-10-05 18:11:22 +0200
committerVicent Marti <tanoku@gmail.com>2011-10-12 21:33:19 +0200
commit51760bc13d2699b34b0015b406242107cfa68b33 (patch)
tree91c6c87d4098ed047fd47b885b2aa8afaf1b0764 /src/netops.c
parente5e92c1fab2034ab549e0b67e566b8ceac649d10 (diff)
downloadlibgit2-51760bc13d2699b34b0015b406242107cfa68b33.tar.gz
pkt: get rid of the chunked support
It was a bad idea. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/netops.c b/src/netops.c
index 5d17e1769..dad296a94 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -152,20 +152,6 @@ int gitno_close(GIT_SOCKET s)
}
#endif
-int gitno_send_chunk_size(int s, size_t len)
-{
- char str[8] = {0};
- int ret;
-
- ret = p_snprintf(str, sizeof(str), "%zx\r\n", len);
- if (ret >= (int) sizeof(str)) {
- return git__throw(GIT_ESHORTBUFFER, "Your number is too big");
- }
-
- return gitno_send(s, str, ret, 0 /* TODO: MSG_MORE */);
-}
-
-
int gitno_select_in(gitno_buffer *buf, long int sec, long int usec)
{
fd_set fds;