[evolution-ews] Adapt to CamelDataCache API change.



commit ea2b3b1e9b297bde48b33a0f8fd9ae0d60901e99
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jun 19 12:11:57 2012 -0400

    Adapt to CamelDataCache API change.
    
    camel_data_cache_get_filename() dropped its unused GError parameter.

 src/camel/camel-ews-folder.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 445b8f6..4e5142e 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -105,14 +105,14 @@ ews_get_filename (CamelFolder *folder,
 {
 	CamelEwsFolder *ews_folder = CAMEL_EWS_FOLDER (folder);
 	GChecksum *sha = g_checksum_new (G_CHECKSUM_SHA256);
-	gchar *ret;
+	gchar *filename;
 
 	g_checksum_update (sha, (guchar *) uid, strlen (uid));
-	ret = camel_data_cache_get_filename (ews_folder->cache, "cur",
-					     g_checksum_get_string (sha),
-					     error);
+	filename = camel_data_cache_get_filename (
+		ews_folder->cache, "cur", g_checksum_get_string (sha));
 	g_checksum_free (sha);
-	return ret;
+
+	return filename;
 }
 
 static gint
@@ -154,14 +154,14 @@ ews_data_cache_get_filename (CamelDataCache *cdc,
                              GError **error)
 {
 	GChecksum *sha = g_checksum_new (G_CHECKSUM_SHA256);
-	gchar *ret;
+	gchar *filename;
 
 	g_checksum_update (sha, (guchar *) key, strlen (key));
-	ret = camel_data_cache_get_filename (cdc, path,
-					     g_checksum_get_string (sha),
-					     error);
+	filename = camel_data_cache_get_filename (
+		cdc, path, g_checksum_get_string (sha));
 	g_checksum_free (sha);
-	return ret;
+
+	return filename;
 }
 
 static CamelMimeMessage *
@@ -179,8 +179,8 @@ camel_ews_folder_get_message_from_cache (CamelEwsFolder *ews_folder,
 	g_static_rec_mutex_lock (&priv->cache_lock);
 	stream = ews_data_cache_get (ews_folder->cache, "cur", uid, error);
 	if (!stream) {
-		gchar *old_fname = camel_data_cache_get_filename (ews_folder->cache, "cur",
-								  uid, error);
+		gchar *old_fname = camel_data_cache_get_filename (
+			ews_folder->cache, "cur", uid);
 		if (!g_access (old_fname, R_OK)) {
 			gchar *new_fname = ews_data_cache_get_filename (ews_folder->cache,
 									"cur", uid, error);



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