summaryrefslogtreecommitdiff
path: root/lib/buffer.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-28 14:04:02 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-01-28 14:04:02 -0500
commita2157a13a5aa5b2c19e073ab30e1185fc0126acd (patch)
treee1b314119dd0770f986ead6ad8fd4a8280f039a6 /lib/buffer.c
parent054ffe7a8e24d461a9c07ec77d38dcf45afd6922 (diff)
lib: Remove #if 0 code
Just some more dead code that has been sitting unused for a very long time. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/buffer.c')
-rw-r--r--lib/buffer.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/buffer.c b/lib/buffer.c
index 459d98e75d..42796faae8 100644
--- a/lib/buffer.c
+++ b/lib/buffer.c
@@ -468,16 +468,6 @@ buffer_status_t buffer_write(struct buffer *b, int fd, const void *p,
{
ssize_t nbytes;
-#if 0
- /*
- * Should we attempt to drain any previously buffered data?
- * This could help reduce latency in pushing out the data if
- * we are stuck in a long-running thread that is preventing
- * the main select loop from calling the flush thread...
- */
- if (b->head && (buffer_flush_available(b, fd) == BUFFER_ERROR))
- return BUFFER_ERROR;
-#endif
if (b->head)
/* Buffer is not empty, so do not attempt to write the new data.
*/