summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-13 14:39:04 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:29 +0000
commit189f9a9e131bb113a88300228eb4cea5b135c9d9 (patch)
tree8db27e16fc8ec60fbe364a0fc225433e8f71af46
parent8e91d6b414c669f6397c7b7e5ba53b61aa30dbfd (diff)
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
-rw-r--r--src/mcd-storage.c33
-rw-r--r--src/mcd-storage.h4
2 files changed, 0 insertions, 37 deletions
diff --git a/src/mcd-storage.c b/src/mcd-storage.c
index b8f5ffca..b3a4bc96 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 930b04b1..5f608af1 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,