diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index a9777ddfe..f013c5971 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -591,18 +591,6 @@ copy_stream(FILE *from, FILE *to) return bytes; } -static void -set_buffer_size(int fd, int read) -{ -#if defined(SO_RCVBUF) && defined(SO_SNDBUF) && defined(HAVE_SETSOCKOPT) - size_t size = 1048576; - while(size >= 131072 && - setsockopt(fd, SOL_SOCKET, read ? SO_RCVBUF : SO_SNDBUF, - (void *)&size, sizeof(size)) < 0) - size /= 2; -#endif -} - void sendrequest(char *cmd, char *local, char *remote, int printnames) {