From 32c0f829d9d1bd0306a97385834e0bafa426ef3e Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 13 Jan 2004 18:03:34 +0000 Subject: free 'base_uri' at the end of the function, or it will leak, and removed 2004-01-13 Rodrigo Moya * gui/calendar-component.c (impl_upgradeFromVersion): free 'base_uri' at the end of the function, or it will leak, and removed duplicated code to create the birthdays backend. svn path=/trunk/; revision=24202 --- calendar/gui/calendar-component.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'calendar/gui/calendar-component.c') diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index ddcff4165c..0726ee9ccc 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -567,8 +567,6 @@ impl_upgradeFromVersion (PortableServer_Servant servant, g_free (new_dir); } - g_free (base_uri); - /* create the remote source group */ group = e_source_group_new (_("On The Web"), "webcal://"); e_source_list_add_group (priv->source_list, group, -1); @@ -588,17 +586,7 @@ impl_upgradeFromVersion (PortableServer_Servant servant, e_source_list_sync (priv->source_list, NULL); } - /* create calendar for birthdays & anniversaries */ - if ((major < 0) || - ((major == 1) && (minor < 5)) || - ((major == 1) && (minor == 5) && (revision < 2))) { - group = e_source_group_new (_("Birthdays"), "contacts://"); - source = e_source_new (_("Birthdays & Anniversaries"), "/"); - e_source_group_add_source (group, source, -1); - e_source_group_set_readonly (group, TRUE); - e_source_list_add_group (priv->source_list, group, -1); - e_source_list_sync (priv->source_list, NULL); - } + g_free (base_uri); return CORBA_TRUE; } -- cgit v1.2.3