From 86d261bdb5cb18665ecd656bf46e502744ce89f8 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sun, 7 Sep 2008 14:08:37 +0200
Subject: removed fdprintf() and client_print()

All callers of fdprintf() have been converted to client_printf() or
fprintf(); it is time to remove this clumsy hack now.  We can also
remove client_print() which took a file descriptor as parameter.
---
 src/client.c | 25 -------------------------
 1 file changed, 25 deletions(-)

(limited to 'src/client.c')

diff --git a/src/client.c b/src/client.c
index c6d4c6249..714172095 100644
--- a/src/client.c
+++ b/src/client.c
@@ -671,31 +671,6 @@ static void client_write_deferred(struct client *client)
 	}
 }
 
-static struct client *client_by_fd(int fd)
-{
-	struct client *client;
-
-	list_for_each_entry(client, &clients, siblings)
-		if (client->fd == fd)
-			return client;
-
-	return NULL;
-}
-
-int client_print(int fd, const char *buffer, size_t buflen)
-{
-	struct client *client;
-
-	assert(fd >= 0);
-
-	client = client_by_fd(fd);
-	if (client == NULL)
-		return -1;
-
-	client_write(client, buffer, buflen);
-	return 0;
-}
-
 static void client_defer_output(struct client *client,
 				const void *data, size_t length)
 {
-- 
cgit v1.2.3