telepathy-mission-control: mcd_connection_cancel_channel_request: remove, unused

Simon McVittie smcv at kemper.freedesktop.org
Thu May 10 08:15:16 PDT 2012


Module: telepathy-mission-control
Branch: master
Commit: e18c550af9c5c5b16017f458e1080a2736db7160
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=e18c550af9c5c5b16017f458e1080a2736db7160

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue May  8 13:23:36 2012 +0100

mcd_connection_cancel_channel_request: remove, unused

---

 src/mcd-connection.c |   38 --------------------------------------
 src/mcd-connection.h |    5 -----
 2 files changed, 0 insertions(+), 43 deletions(-)

diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 97ed737..0d38e45 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -2485,44 +2485,6 @@ mcd_connection_request_channel (McdConnection *connection,
                                                                    channel);
 }
 
-gboolean
-mcd_connection_cancel_channel_request (McdConnection *connection,
-				       guint operation_id,
-				       const gchar *requestor_client_id,
-				       GError **error)
-{
-    const GList *channels, *node;
-    McdChannel *channel;
-
-    /* first, see if the channel is in the list of the pending channels */
-
-    channels = mcd_operation_get_missions (MCD_OPERATION (connection));
-    if (!channels) return FALSE;
-
-    for (node = channels; node; node = node->next)
-    {
-	guint chan_requestor_serial;
-	gchar *chan_requestor_client_id;
-
-	channel = MCD_CHANNEL (node->data);
-	g_object_get (channel,
-		      "requestor-serial", &chan_requestor_serial,
-		      "requestor-client-id", &chan_requestor_client_id,
-		      NULL);
-	if (chan_requestor_serial == operation_id &&
-	    strcmp (chan_requestor_client_id, requestor_client_id) == 0)
-	{
-            DEBUG ("requested channel found (%p)", channel);
-	    mcd_mission_abort (MCD_MISSION (channel));
-	    g_free (chan_requestor_client_id);
-	    return TRUE;
-	}
-	g_free (chan_requestor_client_id);
-    }
-    DEBUG ("requested channel not found!");
-    return FALSE;
-}
-
 void
 mcd_connection_close (McdConnection *connection)
 {
diff --git a/src/mcd-connection.h b/src/mcd-connection.h
index 719f3fa..a3c7dd5 100644
--- a/src/mcd-connection.h
+++ b/src/mcd-connection.h
@@ -81,11 +81,6 @@ TpConnection *mcd_connection_get_tp_connection (McdConnection *connection);
 gboolean mcd_connection_request_channel (McdConnection *connection,
 					 McdChannel *channel);
 
-gboolean mcd_connection_cancel_channel_request (McdConnection *connection,
-					       	guint operation_id,
-						const gchar *requestor_client_id,
-					       	GError **error);
-
 void mcd_connection_close (McdConnection *connection);
 
 McdChannel * mcd_connection_find_channel_by_path (McdConnection *connection,



More information about the telepathy-commits mailing list