[gimp] app: remove some leftover dead code



commit f63a8fcfe67bad6ea89fe6c98afb069da0955fdf
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jan 30 20:43:01 2011 +0100

    app: remove some leftover dead code
    
    probably from before some text layer saving refactoring.

 app/xcf/xcf-save.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index ae26c0e..e4b7486 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -455,9 +455,8 @@ xcf_save_layer_props (XcfInfo    *info,
                       GimpLayer  *layer,
                       GError    **error)
 {
-  GimpParasite *parasite = NULL;
-  gint          offset_x;
-  gint          offset_y;
+  gint offset_x;
+  gint offset_y;
 
   if (gimp_viewable_get_children (GIMP_VIEWABLE (layer)))
     xcf_check_error (xcf_save_prop (info, image, PROP_GROUP_ITEM, error));
@@ -542,13 +541,6 @@ xcf_save_layer_props (XcfInfo    *info,
                                       GIMP_ITEM (layer)->parasites));
     }
 
-  if (parasite)
-    {
-      gimp_parasite_list_remove (GIMP_ITEM (layer)->parasites,
-                                 gimp_parasite_name (parasite));
-      gimp_parasite_free (parasite);
-    }
-
   xcf_check_error (xcf_save_prop (info, image, PROP_END, error));
 
   return TRUE;



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