From: Adam Dickmeiss Date: Tue, 4 Mar 2014 13:12:31 +0000 (+0100) Subject: Remove two functions not in use X-Git-Tag: v1.12.0~32 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=4253e3bdc176c76597daa70cd0346ea72b56e5f5;p=pazpar2-moved-to-github.git Remove two functions not in use --- 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();