aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-06 21:43:27 +0100
committerMax Kellermann <max@duempel.org>2013-11-06 23:50:36 +0100
commit5c18e4f114b90f94959fb165c75689148066c9b2 (patch)
tree17751977a0c02497744589bc4a523e6e349fb9ce /src/event
parentfd2eafa7c67e0efdae7d3d18c39b97f724372f7e (diff)
downloadmpd-5c18e4f114b90f94959fb165c75689148066c9b2.tar.gz
mpd-5c18e4f114b90f94959fb165c75689148066c9b2.tar.xz
mpd-5c18e4f114b90f94959fb165c75689148066c9b2.zip
event/FullyBufferedSocket: remove obsolete TODO comment
We have a better solution now.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/FullyBufferedSocket.cxx16
1 files changed, 0 insertions, 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)) {