[recipes] Drop the compatibility code for the rename
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Drop the compatibility code for the rename
- Date: Wed, 8 Mar 2017 11:01:32 +0000 (UTC)
commit 2d5d4ec68819e390b5659d0aa026345fc2a7e01f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 7 19:49:48 2017 -0500
Drop the compatibility code for the rename
It's been a while, and we will make incompatible changes
to the way some of this data is stored.
src/gr-recipe-store.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/gr-recipe-store.c b/src/gr-recipe-store.c
index ddf435a..072a1cf 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -977,29 +977,6 @@ gr_recipe_store_init (GrRecipeStore *self)
load_shopping (self, user_dir);
load_chefs (self, user_dir, FALSE);
- /* Look for data from before the recipes -> gnome-recipes rename */
- old_dir = get_old_user_data_dir ();
- if (load_recipes (self, old_dir, FALSE)) {
- g_autofree char *filename = g_build_filename (old_dir, "recipes.db", NULL);
- g_remove (filename);
- save_recipes (self);
- }
- if (load_favorites (self, old_dir)) {
- g_autofree char *filename = g_build_filename (old_dir, "favorites.db", NULL);
- g_remove (filename);
- save_favorites (self);
- }
- if (load_shopping (self, old_dir)) {
- g_autofree char *filename = g_build_filename (old_dir, "shopping.db", NULL);
- g_remove (filename);
- save_shopping (self);
- }
- if (load_chefs (self, old_dir, FALSE)) {
- g_autofree char *filename = g_build_filename (old_dir, "chefs.db", NULL);
- g_remove (filename);
- save_chefs (self);
- }
-
g_info ("%d recipes loaded", g_hash_table_size (self->recipes));
g_info ("%d chefs loaded", g_hash_table_size (self->chefs));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]