From 6b7c19ec26552acb6e4fd59a96301ba4ce0b6875 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 25 May 2009 11:23:06 +0200 Subject: [PATCH] remove #if 0'ed code --- src/sftp.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/sftp.c b/src/sftp.c index 456068ab..86a5d26c 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -521,20 +521,6 @@ LIBSSH2_CHANNEL_CLOSE_FUNC(libssh2_sftp_dtor) (void) session_abstract; (void) channel; -#if 0 - /* EEEK! While it might sound like a neat idea to make this code loop over - all the outstanding handles and close them, that is going to cause - EAGAIN to get returned and this callback system is not designed to - handle this very nicely so thus we now DEMAND that the app closes its - handles instead! - */ - - /* Loop through handles closing them */ - while (sftp->handles) { - sftp_close_handle(sftp->handles); - } -#endif - /* Free the partial packet storage for sftp_packet_read */ if (sftp->partial_packet) { LIBSSH2_FREE(session, sftp->partial_packet);