Remove diagnostics
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 29 Mar 2013 19:28:13 +0000 (20:28 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 29 Mar 2013 19:28:13 +0000 (20:28 +0100)
src/data/ods-reader.c

index dd9331a777b4a2ba7295972d933232d8dcfe5277..5363d40fe4e5df6ae3eafb134a1b9f6c9b5e0483 100644 (file)
@@ -144,7 +144,6 @@ struct ods_reader           /*  */
 void
 ods_destroy (struct spreadsheet *s)
 {
-  printf ("%s:%d\n", __FILE__, __LINE__);
 #if 0
   struct ods_reader *r = (struct ods_reader *) s;
 
@@ -240,7 +239,6 @@ ods_get_sheet_range (struct spreadsheet *s, int n)
 static void
 ods_file_casereader_destroy (struct casereader *reader UNUSED, void *r_)
 {
-  printf ("%s:%d %p\n", __FILE__, __LINE__, r_);
 #if 0
   struct ods_reader *r = r_;
   if ( r == NULL)
@@ -911,7 +909,6 @@ ods_file_casereader_read (struct casereader *reader UNUSED, void *r_)
 
   if (!r->used_first_case)
     {
-      printf ("%s:%d\n", __FILE__, __LINE__);
       r->used_first_case = true;
       return r->first_case;
     }
@@ -931,15 +928,12 @@ ods_file_casereader_read (struct casereader *reader UNUSED, void *r_)
        ||  (r->stop_row != -1 && r->rsd.row > r->stop_row + 1)
        )
     {
-      printf ("%s:%d\n", __FILE__, __LINE__);
       return NULL;
     }
-  printf ("%s:%d\n", __FILE__, __LINE__);
 
   c = case_create (r->proto);
   case_set_missing (c);
   
-#if 1
   xmlChar *val_string = NULL;
   xmlChar *type = NULL;
 
@@ -982,15 +976,14 @@ ods_file_casereader_read (struct casereader *reader UNUSED, void *r_)
              convert_xml_to_value (c, var, xmv);
            }
 
-         //      xmlFree (xmv->text);
-         //      xmlFree (xmv->value);
-         //      xmlFree (xmv->type);
-         //      free (xmv);
+         xmlFree (xmv->text);
+         xmlFree (xmv->value);
+         xmlFree (xmv->type);
+         free (xmv);
        }
       if ( r->rsd.state <= STATE_TABLE)
        break;
     }
-#endif
 
   return c;
 }