diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/channel-utils.c | 25 | ||||
-rw-r--r-- | src/channel-utils.h | 3 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/channel-utils.c b/src/channel-utils.c index 6b843895..21cf80f6 100644 --- a/src/channel-utils.c +++ b/src/channel-utils.c @@ -124,31 +124,6 @@ _mcd_tp_channel_details_build_from_list (const GList *channels) } /* - * _mcd_tp_channels_build_from_list: - * @channels: a #GList of #McdChannel elements. - * - * Returns: a #GPtrArray of #TpChannel, free with g_ptr_array_unref. - */ -GPtrArray * -_mcd_tp_channels_build_from_list (const GList *channels) -{ - GPtrArray *tp_channels; - const GList *list; - - tp_channels = g_ptr_array_sized_new (g_list_length ((GList *) channels)); - g_ptr_array_set_free_func (tp_channels, g_object_unref); - - for (list = channels; list != NULL; list = list->next) - { - TpChannel *channel = mcd_channel_get_tp_channel (list->data); - - g_ptr_array_add (tp_channels, g_object_ref (G_OBJECT (channel))); - } - - return tp_channels; -} - -/* * _mcd_tp_channel_details_build_from_tp_chan: * @channel: a #TpChannel * diff --git a/src/channel-utils.h b/src/channel-utils.h index eafd56d9..01428cc9 100644 --- a/src/channel-utils.h +++ b/src/channel-utils.h @@ -39,9 +39,6 @@ GPtrArray *_mcd_tp_channel_details_build_from_tp_chan (TpChannel *channel); G_GNUC_INTERNAL void _mcd_tp_channel_details_free (GPtrArray *channels); -G_GNUC_INTERNAL -GPtrArray *_mcd_tp_channels_build_from_list (const GList *channels); - /* NULL-safe for @channel; @verb is for debug */ G_GNUC_INTERNAL gboolean _mcd_tp_channel_should_close (TpChannel *channel, const gchar *verb); |