diff options
author | ng0 <ng0@n0.is> | 2019-08-02 17:54:57 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-08-02 17:54:57 +0000 |
commit | bdb2e3ea6fae1198e32fe4bfe8aadefc6689b1c3 (patch) | |
tree | f8c2805a659b749aa193324af18c2a2787aa796c | |
parent | 8b1e8793379015ae3ef32e02234467c6e539b448 (diff) | |
download | libmicrohttpd-bdb2e3ea6fae1198e32fe4bfe8aadefc6689b1c3.tar.gz libmicrohttpd-bdb2e3ea6fae1198e32fe4bfe8aadefc6689b1c3.zip |
connection.c: remove dead code
-rw-r--r-- | src/microhttpd/connection.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 97db6378..0447525b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -324,19 +324,6 @@ socket_start_extra_buffering (struct MHD_Connection *connection) | |||
324 | 324 | ||
325 | 325 | ||
326 | /** | 326 | /** |
327 | * Activate no buffering mode (no delay sending) on connection socket. | ||
328 | * | ||
329 | * @param connection connection to be processed | ||
330 | * @return true on success, false otherwise | ||
331 | */ | ||
332 | _MHD_static_inline bool | ||
333 | socket_start_no_buffering (struct MHD_Connection *connection) | ||
334 | { | ||
335 | |||
336 | } | ||
337 | |||
338 | |||
339 | /** | ||
340 | * Activate no buffering mode (no delay sending) on connection socket | 327 | * Activate no buffering mode (no delay sending) on connection socket |
341 | * and push to client data pending in socket buffer. | 328 | * and push to client data pending in socket buffer. |
342 | * | 329 | * |
@@ -350,7 +337,7 @@ socket_start_no_buffering_flush (struct MHD_Connection *connection) | |||
350 | #if defined(TCP_NOPUSH) && !defined(TCP_CORK) | 337 | #if defined(TCP_NOPUSH) && !defined(TCP_CORK) |
351 | const int dummy = 0; | 338 | const int dummy = 0; |
352 | #endif /* !TCP_CORK */ | 339 | #endif /* !TCP_CORK */ |
353 | res = socket_start_no_buffering (connection); /* REMOVE: Dead */ | 340 | |
354 | #if defined(__FreeBSD__) && __FreeBSD__+0 >= 9 | 341 | #if defined(__FreeBSD__) && __FreeBSD__+0 >= 9 |
355 | /* FreeBSD do not need zero-send for flushing starting from version 9 */ | 342 | /* FreeBSD do not need zero-send for flushing starting from version 9 */ |
356 | #elif defined(TCP_NOPUSH) && !defined(TCP_CORK) | 343 | #elif defined(TCP_NOPUSH) && !defined(TCP_CORK) |
@@ -3461,8 +3448,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3461 | connection->state = MHD_CONNECTION_CONTINUE_SENDING; | 3448 | connection->state = MHD_CONNECTION_CONTINUE_SENDING; |
3462 | if (socket_flush_possible (connection)) | 3449 | if (socket_flush_possible (connection)) |
3463 | socket_start_extra_buffering (connection); /* REMOVE: Dead */ | 3450 | socket_start_extra_buffering (connection); /* REMOVE: Dead */ |
3464 | else | ||
3465 | socket_start_no_buffering (connection); /* REMOVE: Dead */ | ||
3466 | 3451 | ||
3467 | break; | 3452 | break; |
3468 | } | 3453 | } |
@@ -3593,8 +3578,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3593 | connection->state = MHD_CONNECTION_HEADERS_SENDING; | 3578 | connection->state = MHD_CONNECTION_HEADERS_SENDING; |
3594 | if (socket_flush_possible (connection)) | 3579 | if (socket_flush_possible (connection)) |
3595 | socket_start_extra_buffering (connection); /* REMOVE: Dead */ | 3580 | socket_start_extra_buffering (connection); /* REMOVE: Dead */ |
3596 | else | ||
3597 | socket_start_no_buffering (connection); /* REMOVE: Dead */ | ||
3598 | 3581 | ||
3599 | break; | 3582 | break; |
3600 | case MHD_CONNECTION_HEADERS_SENDING: | 3583 | case MHD_CONNECTION_HEADERS_SENDING: |
@@ -3665,8 +3648,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3665 | #endif | 3648 | #endif |
3666 | connection->state = MHD_CONNECTION_NORMAL_BODY_READY; | 3649 | connection->state = MHD_CONNECTION_NORMAL_BODY_READY; |
3667 | /* Buffering for flushable socket was already enabled*/ | 3650 | /* Buffering for flushable socket was already enabled*/ |
3668 | if (socket_flush_possible (connection)) | 3651 | |
3669 | socket_start_no_buffering (connection); /* REMOVE: Dead */ | ||
3670 | break; | 3652 | break; |
3671 | } | 3653 | } |
3672 | /* mutex was already unlocked by "try_ready_normal_body */ | 3654 | /* mutex was already unlocked by "try_ready_normal_body */ |
@@ -3699,8 +3681,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
3699 | #endif | 3681 | #endif |
3700 | connection->state = MHD_CONNECTION_CHUNKED_BODY_READY; | 3682 | connection->state = MHD_CONNECTION_CHUNKED_BODY_READY; |
3701 | /* Buffering for flushable socket was already enabled */ | 3683 | /* Buffering for flushable socket was already enabled */ |
3702 | if (socket_flush_possible (connection)) | 3684 | |
3703 | socket_start_no_buffering (connection); /* REMOVE: Dead */ | ||
3704 | continue; | 3685 | continue; |
3705 | } | 3686 | } |
3706 | /* mutex was already unlocked by try_ready_chunked_body */ | 3687 | /* mutex was already unlocked by try_ready_chunked_body */ |