From 6042a54e827b36770e8989d9a8ba49a66ec6f846 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 20 Oct 2012 00:38:33 +0100 Subject: Massive cleanup in OSCAR. --- protocols/oscar/conn.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'protocols/oscar/conn.c') diff --git a/protocols/oscar/conn.c b/protocols/oscar/conn.c index 77ffd50f..a178761e 100644 --- a/protocols/oscar/conn.c +++ b/protocols/oscar/conn.c @@ -352,50 +352,6 @@ aim_conn_t *aim_getconn_type_all(aim_session_t *sess, int type) return cur; } -/** - * aim_cloneconn - clone an aim_conn_t - * @sess: session containing parent - * @src: connection to clone - * - * A new connection is allocated, and the values are filled in - * appropriately. Note that this function sets the new connnection's - * ->priv pointer to be equal to that of its parent: only the pointer - * is copied, not the data it points to. - * - * This function returns a pointer to the new aim_conn_t, or %NULL on - * error - */ -aim_conn_t *aim_cloneconn(aim_session_t *sess, aim_conn_t *src) -{ - aim_conn_t *conn; - - if (!(conn = aim_conn_getnext(sess))) - return NULL; - - conn->fd = src->fd; - conn->type = src->type; - conn->subtype = src->subtype; - conn->seqnum = src->seqnum; - conn->priv = src->priv; - conn->internal = src->internal; - conn->lastactivity = src->lastactivity; - conn->forcedlatency = src->forcedlatency; - conn->sessv = src->sessv; - aim_clonehandlers(sess, conn, src); - - if (src->inside) { - /* - * XXX should clone this section as well, but since currently - * this function only gets called for some of that rendezvous - * crap, and not on SNAC connections, its probably okay for - * now. - * - */ - } - - return conn; -} - /** * aim_newconn - Open a new connection * @sess: Session to create connection in -- cgit v1.2.3