From 4253e3bdc176c76597daa70cd0346ea72b56e5f5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 4 Mar 2014 14:12:31 +0100 Subject: [PATCH] Remove two functions not in use --- src/connection.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/connection.c b/src/connection.c index 508557c..d561906 100644 --- a/src/connection.c +++ b/src/connection.c @@ -103,23 +103,6 @@ struct connection { static int connection_connect(struct connection *con, iochan_man_t iochan_man); -static int connection_is_idle(struct connection *co) -{ - ZOOM_connection link = co->link; - int event; - - if (co->state != Conn_Open || !link) - return 0; - - if (!ZOOM_connection_is_idle(link)) - return 0; - event = ZOOM_connection_peek_event(link); - if (event == ZOOM_EVENT_NONE) - return 1; - else - return 0; -} - ZOOM_connection connection_get_link(struct connection *co) { return co->link; @@ -329,18 +312,6 @@ static void connection_handler(IOCHAN iochan, int event) } } - -// Disassociate connection from client -static void connection_release(struct connection *co) -{ - struct client *cl = co->client; - - if (!cl) - return; - client_set_connection(cl, 0); - co->client = 0; -} - static int connection_connect(struct connection *con, iochan_man_t iochan_man) { ZOOM_options zoptions = ZOOM_options_create(); -- 1.7.10.4