From f8070814c6871bc50d7964a3c88d2a6c03be9c0e Mon Sep 17 00:00:00 2001 From: ng0 Date: Fri, 2 Aug 2019 18:06:52 +0000 Subject: remove code --- src/microhttpd/connection.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5c825b85..7b630b77 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -352,19 +352,6 @@ socket_start_no_buffering_flush (struct MHD_Connection *connection) } -/** - * Activate normal buffering mode on connection socket. - * - * @param connection connection to be processed - * @return true on success, false otherwise - */ -_MHD_static_inline bool -socket_start_normal_buffering (struct MHD_Connection *connection) -{ - mhd_assert(NULL != connection); -} - - /** * Get all of the headers from the request. * @@ -3471,8 +3458,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) connection->state = MHD_CONNECTION_CONTINUE_SENT; if (socket_flush_possible (connection)) socket_start_no_buffering_flush (connection); /* REMOVE: Dead */ - else - socket_start_normal_buffering (connection); /* REMOVE: Dead */ continue; } @@ -3585,7 +3570,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) #ifdef UPGRADE_SUPPORT if (NULL != connection->response->upgrade_handler) { - socket_start_normal_buffering (connection); /* REMOVE: Dead */ connection->state = MHD_CONNECTION_UPGRADE; /* This connection is "upgraded". Pass socket to application. */ if (MHD_YES != @@ -3607,7 +3591,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) continue; } #endif /* UPGRADE_SUPPORT */ - socket_start_normal_buffering (connection); /* REMOVE: Dead */ if (connection->have_chunked_upload) connection->state = MHD_CONNECTION_CHUNKED_BODY_UNREADY; @@ -3707,8 +3690,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) } if (socket_flush_possible (connection)) socket_start_no_buffering_flush (connection); /* REMOVE: Dead */ - else - socket_start_normal_buffering (connection); /* REMOVE: Dead */ MHD_destroy_response (connection->response); connection->response = NULL; @@ -3736,8 +3717,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) else { /* can try to keep-alive */ - if (socket_flush_possible (connection)) - socket_start_normal_buffering (connection); /* REMOVE: Dead */ + connection->version = NULL; connection->state = MHD_CONNECTION_INIT; connection->last = NULL; -- cgit v1.2.3