[next] telepathy-glib: remove unused _tp_create_channel_request_list()

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Mon Feb 10 08:33:11 PST 2014


Module: telepathy-glib
Branch: next
Commit: 33505077323c7ca5693e256781c59b75ad85c03a
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=33505077323c7ca5693e256781c59b75ad85c03a

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Feb 10 13:09:52 2014 +0100

remove unused _tp_create_channel_request_list()

---

 telepathy-glib/util-internal.h |    3 ---
 telepathy-glib/util.c          |   31 -------------------------------
 2 files changed, 34 deletions(-)

diff --git a/telepathy-glib/util-internal.h b/telepathy-glib/util-internal.h
index cf5e48f..bcc5248 100644
--- a/telepathy-glib/util-internal.h
+++ b/telepathy-glib/util-internal.h
@@ -43,9 +43,6 @@ GSocketAddress * _tp_create_temp_unix_socket (GSocketService *service,
     GError **error);
 #endif /* HAVE_GIO_UNIX */
 
-GList * _tp_create_channel_request_list (TpClientFactory *factory,
-    GHashTable *request_props);
-
 /* Copied from wocky/wocky-utils.h */
 
 gboolean _tp_enum_from_nick (GType enum_type, const gchar *nick, gint *value);
diff --git a/telepathy-glib/util.c b/telepathy-glib/util.c
index 36eb631..0018a38 100644
--- a/telepathy-glib/util.c
+++ b/telepathy-glib/util.c
@@ -1457,37 +1457,6 @@ _tp_create_temp_unix_socket (GSocketService *service,
 }
 #endif /* HAVE_GIO_UNIX */
 
-GList *
-_tp_create_channel_request_list (TpClientFactory *factory,
-    GHashTable *request_props)
-{
-  GHashTableIter iter;
-  GList *result = NULL;
-  gpointer key, value;
-
-  g_hash_table_iter_init (&iter, request_props);
-  while (g_hash_table_iter_next (&iter, &key, &value))
-    {
-      TpChannelRequest *req;
-      const gchar *path = key;
-      GHashTable *props = value;
-      GError *error = NULL;
-
-      req = _tp_client_factory_ensure_channel_request (factory, path,
-          props, &error);
-      if (req == NULL)
-        {
-          DEBUG ("Failed to create TpChannelRequest: %s", error->message);
-          g_error_free (error);
-          continue;
-        }
-
-      result = g_list_prepend (result, req);
-    }
-
-  return result;
-}
-
 /**
  * tp_utf8_make_valid:
  * @name: string to coerce into UTF8



More information about the telepathy-commits mailing list