telepathy-mission-control: mcd_channel_get_name: remove, unused
Simon McVittie
smcv at kemper.freedesktop.org
Thu May 10 08:15:16 PDT 2012
Module: telepathy-mission-control
Branch: master
Commit: 2f243467c66a466123cbfa1aa183fd3425bae2f9
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=2f243467c66a466123cbfa1aa183fd3425bae2f9
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue May 8 13:32:49 2012 +0100
mcd_channel_get_name: remove, unused
---
src/mcd-channel.c | 28 ----------------------------
src/mcd-channel.h | 1 -
2 files changed, 0 insertions(+), 29 deletions(-)
diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index ab0c107..14374d1 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -828,34 +828,6 @@ mcd_channel_get_handle_type (McdChannel *channel)
return handle_type;
}
-/**
- * mcd_channel_get_name:
- * @channel: the #McdChannel.
- *
- * Get the Telepathy name of @channel (calls InspectHandles on the channel
- * handle).
- *
- * Returns: a const string holding the channel name.
- */
-const gchar *
-mcd_channel_get_name (McdChannel *channel)
-{
- McdChannelPrivate *priv;
- GHashTable *properties = NULL;
-
- g_return_val_if_fail (MCD_IS_CHANNEL (channel), NULL);
- priv = channel->priv;
-
- if (priv->tp_chan)
- properties = tp_channel_borrow_immutable_properties (priv->tp_chan);
- else if (G_LIKELY (priv->request != NULL))
- properties = _mcd_request_get_properties (priv->request);
-
- if (!properties) return NULL;
-
- return tp_asv_get_string (properties, TP_IFACE_CHANNEL ".TargetID");
-}
-
/*
* _mcd_channel_get_immutable_properties:
* @channel: the #McdChannel.
diff --git a/src/mcd-channel.h b/src/mcd-channel.h
index a1da372..163ee9e 100644
--- a/src/mcd-channel.h
+++ b/src/mcd-channel.h
@@ -106,7 +106,6 @@ GQuark mcd_channel_get_channel_type_quark (McdChannel *channel);
const gchar* mcd_channel_get_object_path (McdChannel *channel);
guint mcd_channel_get_handle (McdChannel *channel);
TpHandleType mcd_channel_get_handle_type (McdChannel *channel);
-const gchar *mcd_channel_get_name (McdChannel *channel);
gboolean mcd_channel_is_requested (McdChannel *channel);
McdAccount *mcd_channel_get_account (McdChannel *channel);
TpChannel *mcd_channel_get_tp_channel (McdChannel *channel);
More information about the telepathy-commits
mailing list