[recipes] Avoid some unnecessary work



commit 9941a8ae43af9b6e029db5c000ca4fcc7f550d1a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 17 21:30:51 2017 -0500

    Avoid some unnecessary work
    
    We don't need the chef to update the recipe css, so don't get it.

 src/gr-recipe-tile.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/gr-recipe-tile.c b/src/gr-recipe-tile.c
index a4b4aa4..46da62d 100644
--- a/src/gr-recipe-tile.c
+++ b/src/gr-recipe-tile.c
@@ -58,16 +58,9 @@ add_recipe_css (GrRecipe *recipe,
                 GString  *css)
 {
         const char *id;
-        const char *author;
-        g_autoptr(GrChef) chef = NULL;
         g_autoptr(GArray) images = NULL;
-        GrRecipeStore *store;
-
-        store = gr_app_get_recipe_store (GR_APP (g_application_get_default ()));
 
         id = gr_recipe_get_id (recipe);
-        author = gr_recipe_get_author (recipe);
-        chef = gr_recipe_store_get_chef (store, author);
 
         g_object_get (recipe, "images", &images, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]