[recipes] recipe: Drop the serves property



commit 894df9de98c2932482790393b74b93b9c9fed3dc
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 25 19:39:06 2017 -0400

    recipe: Drop the serves property
    
    Nothing uses it anymore.

 src/gr-recipe.c |   21 ---------------------
 src/gr-recipe.h |    1 -
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/gr-recipe.c b/src/gr-recipe.c
index 1050ba2..4001395 100644
--- a/src/gr-recipe.c
+++ b/src/gr-recipe.c
@@ -57,7 +57,6 @@ struct _GrRecipe
         char *category;
         char *prep_time;
         char *cook_time;
-        int serves;
         char *ingredients;
         char *instructions;
         char *notes;
@@ -99,7 +98,6 @@ enum {
         PROP_CATEGORY,
         PROP_PREP_TIME,
         PROP_COOK_TIME,
-        PROP_SERVES,
         PROP_YIELD,
         PROP_YIELD_UNIT,
         PROP_INGREDIENTS,
@@ -204,10 +202,6 @@ gr_recipe_get_property (GObject    *object,
                 g_value_set_string (value, self->cook_time);
                 break;
 
-        case PROP_SERVES:
-                g_value_set_int (value, self->serves);
-                break;
-
         case PROP_SPICINESS:
                 g_value_set_int (value, self->spiciness);
                 break;
@@ -356,10 +350,6 @@ gr_recipe_set_property (GObject      *object,
                 self->cook_time = g_value_dup_string (value);
                 break;
 
-        case PROP_SERVES:
-                self->serves = g_value_get_int (value);
-                break;
-
         case PROP_SPICINESS:
                 self->spiciness = g_value_get_int (value);
                 break;
@@ -502,11 +492,6 @@ gr_recipe_class_init (GrRecipeClass *klass)
                                      G_PARAM_READWRITE);
         g_object_class_install_property (object_class, PROP_COOK_TIME, pspec);
 
-        pspec = g_param_spec_int ("serves", NULL, NULL,
-                                  0, 100, 0,
-                                  G_PARAM_READWRITE);
-        g_object_class_install_property (object_class, PROP_SERVES, pspec);
-
         pspec = g_param_spec_string ("ingredients", NULL, NULL,
                                      NULL,
                                      G_PARAM_READWRITE);
@@ -615,12 +600,6 @@ gr_recipe_get_translated_notes (GrRecipe *recipe)
         return recipe->translated_notes;
 }
 
-int
-gr_recipe_get_serves (GrRecipe *recipe)
-{
-        return recipe->serves;
-}
-
 const char *
 gr_recipe_get_cuisine (GrRecipe *recipe)
 {
diff --git a/src/gr-recipe.h b/src/gr-recipe.h
index 03ac876..5aed828 100644
--- a/src/gr-recipe.h
+++ b/src/gr-recipe.h
@@ -37,7 +37,6 @@ const char     *gr_recipe_get_id           (GrRecipe   *recipe);
 const char     *gr_recipe_get_name         (GrRecipe   *recipe);
 const char     *gr_recipe_get_author       (GrRecipe   *recipe);
 const char     *gr_recipe_get_description  (GrRecipe   *recipe);
-int             gr_recipe_get_serves       (GrRecipe   *recipe);
 const char     *gr_recipe_get_cuisine      (GrRecipe   *recipe);
 const char     *gr_recipe_get_season       (GrRecipe   *recipe);
 const char     *gr_recipe_get_category     (GrRecipe   *recipe);


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