telepathy-mission-control: mcd_storage_dup_attributes: remove

Simon McVittie smcv at kemper.freedesktop.org
Thu Jan 30 04:34:40 PST 2014


Module: telepathy-mission-control
Branch: master
Commit: 189f9a9e131bb113a88300228eb4cea5b135c9d9
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=189f9a9e131bb113a88300228eb4cea5b135c9d9

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Nov 13 14:39:04 2013 +0000

mcd_storage_dup_attributes: remove

Nothing calls it, and getting rid of it is a step towards having
McdStorage just be a "view".

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727

---

 src/mcd-storage.c |   33 ---------------------------------
 src/mcd-storage.h |    4 ----
 2 files changed, 37 deletions(-)

diff --git a/src/mcd-storage.c b/src/mcd-storage.c
index b8f5ffc..b3a4bc9 100644
--- a/src/mcd-storage.c
+++ b/src/mcd-storage.c
@@ -688,39 +688,6 @@ mcd_storage_dup_accounts (McdStorage *self,
 }
 
 /*
- * mcd_storage_dup_attributes:
- * @storage: An object implementing the #McdStorage interface
- * @account: unique name of the account
- * @n: place for the number of attributes to be written to (or %NULL)
- *
- * Returns: a newly allocated GStrv containing the names of all the
- * attributes or parameters currently stored for @account. Must be
- * freed by the caller with g_strfreev().
- */
-GStrv
-mcd_storage_dup_attributes (McdStorage *self,
-    const gchar *account,
-    gsize *n)
-{
-  GPtrArray *ret = g_ptr_array_new ();
-  McdStorageAccount *sa = lookup_account (self, account);
-
-  if (sa != NULL)
-    {
-      GHashTableIter iter;
-      gpointer k;
-
-      g_hash_table_iter_init (&iter, sa->attributes);
-
-      while (g_hash_table_iter_next (&iter, &k, NULL))
-        g_ptr_array_add (ret, g_strdup (k));
-    }
-
-  g_ptr_array_add (ret, NULL);
-  return (GStrv) g_ptr_array_free (ret, FALSE);
-}
-
-/*
  * mcd_storage_get_plugin:
  * @storage: An object implementing the #McdStorage interface
  * @account: unique name of the account
diff --git a/src/mcd-storage.h b/src/mcd-storage.h
index 930b04b..5f608af 100644
--- a/src/mcd-storage.h
+++ b/src/mcd-storage.h
@@ -66,10 +66,6 @@ void mcd_storage_load (McdStorage *storage);
 
 GStrv mcd_storage_dup_accounts (McdStorage *storage, gsize *n);
 
-GStrv mcd_storage_dup_attributes (McdStorage *storage,
-    const gchar *account,
-    gsize *n);
-
 gboolean mcd_storage_set_string (McdStorage *storage,
     const gchar *account,
     const gchar *attribute,



More information about the telepathy-commits mailing list