[recipes] Revert "gr-recipe-store api to get and save all the cuisines"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Revert "gr-recipe-store api to get and save all the cuisines"
- Date: Tue, 28 Mar 2017 18:25:33 +0000 (UTC)
commit 0b510ae2e917f2314e5aecafbc379d0d44f9088e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 28 19:24:52 2017 +0100
Revert "gr-recipe-store api to get and save all the cuisines"
This reverts commit f5cb9608cccb4a71f52243d218c6f79c062cd494.
Pushed by accident
src/gr-recipe-store.c | 21 ---------------------
src/gr-recipe-store.h | 2 --
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/gr-recipe-store.c b/src/gr-recipe-store.c
index e62c5ad..58932c4 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -1179,27 +1179,6 @@ gr_recipe_store_get_contributors (GrRecipeStore *self,
return (char **)g_hash_table_get_keys_as_array (chefs, length);
}
-char **
-gr_recipe_store_get_all_cuisines (GrRecipeStore *self,
- guint *length )
-{
- GHashTableIter iter;
- GrRecipe *recipe;
- g_autoptr (GHashTable) cuisines = NULL;
-
- cuisines = g_hash_table_new (g_str_hash, g_str_equal);
-
- g_hash_table_iter_init (&iter, self->recipes);
- while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &recipe)) {
- if(! (g_hash_table_contains (cuisines, gr_recipe_get_cuisine (recipe)))) {
- g_hash_table_insert (cuisines,
- (gpointer) (gr_recipe_get_cuisine (recipe)),
- (gpointer) (gr_recipe_get_cuisine (recipe)));
- }
- }
- return (char **) g_hash_table_get_keys_as_array (cuisines, length);
-}
-
const char *
gr_recipe_store_get_user_key (GrRecipeStore *self)
{
diff --git a/src/gr-recipe-store.h b/src/gr-recipe-store.h
index f162583..cde8700 100644
--- a/src/gr-recipe-store.h
+++ b/src/gr-recipe-store.h
@@ -117,8 +117,6 @@ gboolean gr_recipe_store_has_cuisine (GrRecipeStore *self,
const char *cuisine);
char ** gr_recipe_store_get_contributors (GrRecipeStore *self,
guint *length);
-char ** gr_recipe_store_get_all_cuisines (GrRecipeStore *store,
- guint *length);
#define GR_TYPE_RECIPE_SEARCH (gr_recipe_search_get_type())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]