From 29be54f6d3549c44b2b771ca3c21952d2d1b7026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 9 Feb 2011 18:01:18 +0100 Subject: [PATCH] server/reds: remove unused readv Let's not bother with it since nobody uses it, and it's not implemented for SSL anyway https://bugs.freedesktop.org/show_bug.cgi?id=34795 --- server/reds.c | 2 -- server/reds.h | 1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/server/reds.c b/server/reds.c index b8ac79b..573a838 100644 --- a/server/reds.c +++ b/server/reds.c @@ -1902,7 +1902,6 @@ static RedLinkInfo *reds_accept_connection(int listen_socket) peer->ctx = (void *)((unsigned long)link->peer->socket); peer->cb_read = (int (*)(void *, void *, int))reds_read; peer->cb_write = (int (*)(void *, void *, int))reds_write; - peer->cb_readv = (int (*)(void *, const struct iovec *vector, int count))readv; peer->cb_writev = (int (*)(void *, const struct iovec *vector, int count))writev; peer->cb_free = (int (*)(RedsStreamContext *))reds_free; @@ -1939,7 +1938,6 @@ static void reds_accept_ssl_connection(int fd, int event, void *data) link->peer->ctx = (void *)(link->peer->ssl); link->peer->cb_write = (int (*)(void *, void *, int))reds_ssl_write; link->peer->cb_read = (int (*)(void *, void *, int))reds_ssl_read; - link->peer->cb_readv = NULL; link->peer->cb_writev = reds_ssl_writev; link->peer->cb_free = (int (*)(RedsStreamContext *))reds_ssl_free; diff --git a/server/reds.h b/server/reds.h index b5dec7e..547c33c 100644 --- a/server/reds.h +++ b/server/reds.h @@ -44,7 +44,6 @@ typedef struct RedsStreamContext { int (*cb_write)(void *, void *, int); int (*cb_read)(void *, void *, int); - int (*cb_readv)(void *, const struct iovec *vector, int count); int (*cb_writev)(void *, const struct iovec *vector, int count); int (*cb_free)(struct RedsStreamContext *); } RedsStreamContext; -- 1.7.4