Remove debug printfs that escaped from my local tree.
[pspp-builds.git] / src / ui / gui / psppire-data-store.c
index 8808fd32588fe29f46b73dfe232a1dfccdf620a6..b67e27c139024308fecd33da12e0db50beb09d38 100644 (file)
@@ -347,7 +347,6 @@ insert_variable_callback (GObject *obj, gint var_num, gpointer data)
 
   variable = psppire_dict_get_variable (store->dict, var_num);
   posn = var_get_case_index (variable);
-  printf ("insert var_num=%d, posn=%d\n", var_num, posn);
   psppire_data_store_insert_value (store, var_get_width (variable), posn);
 
 #if AXIS_TRANSITION
@@ -653,12 +652,11 @@ psppire_data_store_clear_datum (PsppireSheetModel *model,
   PsppireDataStore *store = PSPPIRE_DATA_STORE (model);
 
   union value v;
-  int width;
   const struct variable *pv = psppire_dict_get_variable (store->dict, col);
+  int width = var_get_width (pv);
 
   const gint index = var_get_case_index (pv) ;
 
-  width = var_is_numeric (pv) ? 0 : MAX_SHORT_STRING;
   value_init (&v, width);
   value_set_missing (&v, width);
   psppire_data_store_set_value (store, row, index, &v);
@@ -1018,7 +1016,6 @@ psppire_data_store_insert_value (PsppireDataStore *ds,
   else
     value_set_missing (&value, width);
 
-  printf("insert column width=%d\n", width);
   datasheet_insert_column (ds->datasheet, &value, width, where);
 
   return TRUE;