changeset 13610:060835af7634

[gaim-migrate @ 15996] Remove an unused function, flap_connection_clone() committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 10 Apr 2006 03:57:58 +0000
parents 5796551db930
children 7f91efd5af77
files src/protocols/oscar/flap_connection.c src/protocols/oscar/oscar.h
diffstat 2 files changed, 0 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/flap_connection.c	Mon Apr 10 03:53:05 2006 +0000
+++ b/src/protocols/oscar/flap_connection.c	Mon Apr 10 03:57:58 2006 +0000
@@ -129,34 +129,6 @@
 }
 
 /**
- * Clone a FlapConnection.
- *
- * A new connection is allocated, and the values are filled in
- * appropriately.
- *
- * @param od The session containing this connection.
- * @param src The connection to clone.
- * @return Returns a pointer to the new FlapConnection, or %NULL on error.
- */
-FlapConnection *
-flap_connection_clone(OscarData *od, FlapConnection *src)
-{
-	FlapConnection *conn;
-
-	conn = flap_connection_new(od, src->type);
-	conn->fd = src->fd;
-	conn->type = src->type;
-	conn->subtype = src->subtype;
-	conn->seqnum = src->seqnum;
-	conn->internal = src->internal;
-	conn->lastactivity = src->lastactivity;
-
-	/* TODO: Clone groups and rates */
-
-	return conn;
-}
-
-/**
  * Close (but not free) a connection.
  *
  * This leaves everything untouched except for setting the fd
--- a/src/protocols/oscar/oscar.h	Mon Apr 10 03:53:05 2006 +0000
+++ b/src/protocols/oscar/oscar.h	Mon Apr 10 03:57:58 2006 +0000
@@ -571,7 +571,6 @@
 FlapConnection *flap_connection_getbytype(OscarData *, int type);
 FlapConnection *flap_connection_getbytype_all(OscarData *, int type);
 void flap_connection_recv_cb(gpointer data, gint source, GaimInputCondition cond);
-FlapConnection *flap_connection_clone(OscarData *od, FlapConnection *src);
 void flap_connection_send(FlapConnection *conn, FlapFrame *frame);
 void flap_connection_send_version(OscarData *od, FlapConnection *conn);
 void flap_connection_send_version_with_cookie(OscarData *od, FlapConnection *conn, guint16 length, const guint8 *chipsahoy);