diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-05-05 17:13:20 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-05-05 17:16:56 +0100 |
commit | 53bbd7de157f869d36edc40f73a317467e88df29 (patch) | |
tree | 158e9332bd93ee5bf4c5b0f8c3548417014d8bc3 /src | |
parent | c895b0414278dc79d749cd5a13974ff6d6d4b80a (diff) |
Revert "Util to prepare a GPtrArray of TpChannel for the new DBus handler ACL framework"
This reverts commit cbd280e9d768df7e4e1c69b0c0b49648a0219a10.
Now that we're using McpDispatchOperation, this function isn't needed.
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); |