diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-10-05 18:11:22 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-10-12 21:33:19 +0200 |
commit | 51760bc13d2699b34b0015b406242107cfa68b33 (patch) | |
tree | 91c6c87d4098ed047fd47b885b2aa8afaf1b0764 /src/netops.c | |
parent | e5e92c1fab2034ab549e0b67e566b8ceac649d10 (diff) | |
download | libgit2-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.c | 14 |
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; |