From 957fc49d8b57d543ecd3a6fc8696bbf98de82509 Mon Sep 17 00:00:00 2001 From: gyboth Date: Thu, 8 Jan 2009 08:41:37 +0000 Subject: [PATCH] Skip weeks removed. --- src/xml_loadsave_cup.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/xml_loadsave_cup.c b/src/xml_loadsave_cup.c index 99870b1a..1d0444b0 100644 --- a/src/xml_loadsave_cup.c +++ b/src/xml_loadsave_cup.c @@ -149,7 +149,7 @@ xml_loadsave_cup_end_element (GMarkupParseContext *context, tag == TAG_WEEK_GAP || tag == TAG_WEEK_BREAK || tag == TAG_WEEK_BREAK_LENGTH || - tag == TAG_SKIP_WEEKS_WITH || +/* tag == TAG_SKIP_WEEKS_WITH || */ tag == TAG_PROPERTY || tag == TAG_CUP_LAST_WEEK || tag == TAG_CUP_ADD_WEEK || @@ -249,8 +249,8 @@ xml_loadsave_cup_text (GMarkupParseContext *context, new_week_break.length = int_value; g_array_append_val(new_cup->week_breaks, new_week_break); } - else if(state == TAG_SKIP_WEEKS_WITH) - g_ptr_array_add(new_cup->skip_weeks_with, g_strdup(buf)); +/* else if(state == TAG_SKIP_WEEKS_WITH) */ +/* g_ptr_array_add(new_cup->skip_weeks_with, g_strdup(buf)); */ else if(state == TAG_YELLOW_RED) new_cup->yellow_red = int_value; else if(state == TAG_PROPERTY) @@ -432,9 +432,9 @@ xml_loadsave_cup_write(const gchar *prefix, const Cup *cup) xml_write_string(fil, (gchar*)g_ptr_array_index(cup->properties, i), TAG_PROPERTY, I0); - for(i = 0; i < cup->skip_weeks_with->len; i++) - xml_write_string(fil, (gchar*)g_ptr_array_index(cup->skip_weeks_with, i), - TAG_SKIP_WEEKS_WITH, I0); +/* for(i = 0; i < cup->skip_weeks_with->len; i++) */ +/* xml_write_string(fil, (gchar*)g_ptr_array_index(cup->skip_weeks_with, i), */ +/* TAG_SKIP_WEEKS_WITH, I0); */ for(i=0;irounds->len;i++) xml_loadsave_cup_write_round(fil, prefix, cup, i);