[evolution-exchange/kill-folder-uris] kill-folder-uris



commit 301b2a8694fb797fe1eedfc0959e3802957e2ebc
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon May 2 22:08:44 2011 -0400

    kill-folder-uris

 camel/camel-exchange-store.c |   11 -----------
 eplugin/exchange-folder.c    |    8 +++++---
 2 files changed, 5 insertions(+), 14 deletions(-)
---
diff --git a/camel/camel-exchange-store.c b/camel/camel-exchange-store.c
index c62bfdb..6d580a2 100644
--- a/camel/camel-exchange-store.c
+++ b/camel/camel-exchange-store.c
@@ -62,8 +62,6 @@ make_folder_info (CamelExchangeStore *exch,
 {
 	CamelFolderInfo *info;
 	const gchar *path;
-	gchar **components;
-	gchar *new_uri;
 	gchar *temp;
 
 	d(printf ("make folder info : %s flags : %d\n", name, flags));
@@ -74,17 +72,8 @@ make_folder_info (CamelExchangeStore *exch,
 	if (!path)
 		return NULL;
 
-	components = g_strsplit (uri, "/;", 2);
-	if (components[0] && components[1])
-		new_uri = g_strdup_printf ("%s/%s", components[0], components[1]);
-	else
-		new_uri = g_strdup (uri);
-	g_strfreev (components);
-
-	d(printf ("new_uri is : %s\n", new_uri));
 	info = camel_folder_info_new ();
 	info->name = name;
-	info->uri = new_uri;
 
 	/* Process the full-path and decode if required */
 	temp = strrchr (path+2, '/');
diff --git a/eplugin/exchange-folder.c b/eplugin/exchange-folder.c
index 5d6a15b..4886a2b 100644
--- a/eplugin/exchange-folder.c
+++ b/eplugin/exchange-folder.c
@@ -42,8 +42,11 @@
 #define CONF_KEY_SELECTED_CAL_SOURCES "/apps/evolution/calendar/display/selected_calendars"
 
 static CamelFolderInfo *
-ex_create_folder_info (CamelStore *store, gchar *name, gchar *uri,
-                  gint unread_count, gint flags)
+ex_create_folder_info (CamelStore *store,
+                       gchar *name,
+                       gchar *uri,
+                       gint unread_count,
+                       gint flags)
 {
 	CamelFolderInfo *info;
 	const gchar *path;
@@ -57,7 +60,6 @@ ex_create_folder_info (CamelStore *store, gchar *name, gchar *uri,
 
 	info = camel_folder_info_new ();
 	info->name = name;
-	info->uri = uri;
 	info->full_name = g_strdup (path + 1);
 	info->unread = unread_count;
 



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