[telepathy-doc/master] Remove dead code from example
Davyd Madeley
davyd at madeley.id.au
Mon May 11 06:22:52 PDT 2009
---
docs/examples/glib_telepathy_properties/example.c | 74 ---------------------
1 files changed, 0 insertions(+), 74 deletions(-)
diff --git a/docs/examples/glib_telepathy_properties/example.c b/docs/examples/glib_telepathy_properties/example.c
index a377ea3..e6dd116 100644
--- a/docs/examples/glib_telepathy_properties/example.c
+++ b/docs/examples/glib_telepathy_properties/example.c
@@ -27,80 +27,6 @@ handle_error (const GError *error)
}
static void
-new_channels_cb (TpConnection *conn,
- const GPtrArray *channels,
- gpointer user_data,
- GObject *weak_obj)
-{
- GError *error = NULL;
-
- /* channels has the D-Bus type a(oa{sv}), which decomposes to:
- * - a GPtrArray containing a GValueArray for each channel
- * - each GValueArray contains
- * - an object path
- * - an a{sv} map
- */
-
- int i;
- for (i = 0; i < channels->len; i++)
- {
- GValueArray *channel = g_ptr_array_index (channels, i);
- char *object_path = g_value_get_boxed (
- g_value_array_get_nth (channel, 0));
- GHashTable *map = g_value_get_boxed (
- g_value_array_get_nth (channel, 1));
-
- const char *type = tp_asv_get_string (map,
- TP_IFACE_CHANNEL ".ChannelType");
- const char *id = tp_asv_get_string (map,
- TP_IFACE_CHANNEL ".TargetID");
-
- g_print ("New channel %s: %s\n", type, id);
- }
-}
-
-static void
-get_channels_cb (TpProxy *proxy,
- const GValue *value,
- const GError *in_error,
- gpointer user_data,
- GObject *weak_obj)
-{
- handle_error (in_error);
-
- g_return_if_fail (G_VALUE_HOLDS (value,
- TP_ARRAY_TYPE_CHANNEL_DETAILS_LIST));
-
- GPtrArray *channels = g_value_get_boxed (value);
-
- new_channels_cb (conn, channels, user_data, weak_obj);
-}
-
-static void
-create_roomlist_cb (TpConnection *conn,
- const char *object_path,
- GHashTable *props,
- const GError *in_error,
- gpointer user_data,
- GObject *weak_obj)
-{
- handle_error (in_error);
- GError *error = NULL;
-
- g_print (" > create_roomlist_cb (%s)\n", object_path);
-
- TpChannel *channel = tp_channel_new_from_properties (conn,
- object_path, props, &error);
- handle_error (error);
-
- tp_asv_dump (props);
-
- /* we didn't really want this channel anyway */
- tp_cli_channel_call_close (channel, -1, NULL, NULL, NULL, NULL);
- g_object_unref (channel);
-}
-
-static void
tp_properties_changed_cb (TpProxy *channel,
const GPtrArray *properties,
gpointer user_data,
--
1.5.6.5
More information about the telepathy-commits
mailing list