[gimp/metadata-browser] metadata: Remove ns_prefix decl (it is conditionally used)



commit c49d740d148a5fbefd1b3627fb4cfb3ccf3cbe82
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Oct 3 12:55:10 2011 +0530

    metadata: Remove ns_prefix decl (it is conditionally used)

 plug-ins/metadata/xmp-model.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/metadata/xmp-model.c b/plug-ins/metadata/xmp-model.c
index 2af90d0..992679c 100644
--- a/plug-ins/metadata/xmp-model.c
+++ b/plug-ins/metadata/xmp-model.c
@@ -519,7 +519,6 @@ parse_set_property (XMPParseContext     *context,
   XMPSchema   *schema = ns_user_data;
   XMPType      xmptype;
   int          i;
-  const gchar *ns_prefix;
   XMPProperty *property;
   GtkTreeIter  iter;
   GtkTreeIter  child_iter;
@@ -535,7 +534,6 @@ parse_set_property (XMPParseContext     *context,
       return;
     }
 
-  ns_prefix = schema->prefix;
   property = NULL;
 
   if (schema->properties != NULL)
@@ -554,7 +552,7 @@ parse_set_property (XMPParseContext     *context,
     {
     case XMP_PTYPE_TEXT:
 #ifdef DEBUG_XMP_MODEL
-      g_print ("\t%s:%s = \"%s\"\n", ns_prefix, name, value[0]);
+      g_print ("\t%s:%s = \"%s\"\n", schema->prefix, name, value[0]);
 #endif
       xmp_model_set_property (xmp_model, XMP_TYPE_TEXT, schema->uri, name, value);
       break;



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