From 5c18e4f114b90f94959fb165c75689148066c9b2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 6 Nov 2013 21:43:27 +0100 Subject: event/FullyBufferedSocket: remove obsolete TODO comment We have a better solution now. --- src/event/FullyBufferedSocket.cxx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/event/FullyBufferedSocket.cxx b/src/event/FullyBufferedSocket.cxx index 3b8cf3765..8b57b1308 100644 --- a/src/event/FullyBufferedSocket.cxx +++ b/src/event/FullyBufferedSocket.cxx @@ -89,22 +89,6 @@ FullyBufferedSocket::Write(const void *data, size_t length) if (length == 0) return true; -#if 0 - /* TODO: disabled because this would add overhead on some callers (the ones that often), but it may be useful */ - - if (output.IsEmpty()) { - /* try to write it directly first */ - const auto nbytes = DirectWrite(data, length); - if (gcc_likely(nbytes > 0)) { - data = (const uint8_t *)data + nbytes; - length -= nbytes; - if (length == 0) - return true; - } else if (nbytes < 0) - return false; - } -#endif - const bool was_empty = output.IsEmpty(); if (!output.Append(data, length)) { -- cgit v1.2.3